Details
-
Task
-
Status: Resolved
-
Medium
-
Resolution: Done
-
None
Description
Currently, we generate for each container element (container, list) schema and, additionally, schema with _TOP prefix. _TOP prefix is used for PUT (JSON), PATCH (JSON) and GET operations.
Assuming that all operations are under path.
We can change our logic in the following way:
- For each container create its path.
- For each container create its schema - only one.
- Link container's path with schema for PUT (JSON), PATCH (JSON) and GET operations.
- Link container's parent path with schema for POST, PUT (XML) and PATCH (XML) operations.
- Continue.
Attachments
Issue Links
- blocks
-
NETCONF-1077 OpenApi: Missing "data" path for POST requests
-
- Open
-
- is blocked by
-
NETCONF-1054 OpenApi: POST examples are incorrect
-
- Resolved
-
-
NETCONF-1059 OpenApi: Wrong XML GET example
-
- Resolved
-
- relates to
-
NETCONF-938 Cannot generate API docs for Junos device
-
- In Review
-
| # | Subject | Branch | Project | Status | CR | V |
|---|---|---|---|---|---|---|
| 107223,16 | Do not use TOP schemas in PUT requests | master | netconf | Status: MERGED | +2 | +1 |
| 107238,15 | Do not use TOP schemas in PATCH requests | master | netconf | Status: MERGED | +2 | +1 |
| 107263,12 | Do not use TOP schemas in GET requests | master | netconf | Status: MERGED | +2 | +1 |
| 107359,14 | Do not use TOP schemas in RPC requests | master | netconf | Status: MERGED | +2 | +1 |
| 107364,13 | Eliminate TOP schemas | master | netconf | Status: MERGED | +2 | +1 |