Details
-
Improvement
-
Status: Resolved
-
Medium
-
Resolution: Done
-
None
Description
Create new Java Schema object according to Schema Object chapter at https://swagger.io/specification/. Then change Components object as follows:
private ObjectNode schemas;
to:
private Map<String, Schema> schemas;
and resolve all consequences in the codebase.
As a result we can remove JsonUtil#addFields method which is addressed by another issue.
Attachments
Issue Links
- blocks
-
NETCONF-1025 OpenAPI: Eliminate JsonUtil#addFields method
-
- Resolved
-
- relates to
-
NETCONF-938 Cannot generate API docs for Junos device
-
- In Review
-
| # | Subject | Branch | Project | Status | CR | V |
|---|---|---|---|---|---|---|
| 105989,12 | Use Java Schema object instead of JsonNode | master | netconf | Status: MERGED | +2 | +1 |
| 106032,6 | Rename convertToJsonSchema method | master | netconf | Status: MERGED | +2 | +1 |
| 106155,2 | Add JsonProperty for Schema's reference | master | netconf | Status: MERGED | +2 | +1 |