Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

feat: diverse improvements of the network schemas #35

Merged
merged 8 commits into from
Mar 8, 2024
Merged

feat: diverse improvements of the network schemas #35

merged 8 commits into from
Mar 8, 2024

Conversation

gtema
Copy link
Owner

@gtema gtema commented Mar 8, 2024

  • chore: sort struct fields alphabetically during render
  • feat: add router.XXX_router_interface schemas
  • feat: improve generator to omit "mut" for builder
  • feat: add router.xxx_extraroutes schema
  • feat: add router.XXX_external_gateway schema
  • fix: improve path prefix for conntrack-helper group
  • fix: slightly improve parameter naming in neutron spec
  • feat: add docstrings in cli for top level body fields

Small changes to jsonschema or model cause reorder of struct fields
and/or enum kinds. To further reduce amount of unrelated changes sort
also all struct fields alphabetically.
implement schemas for {add,remove}_router_interface which has `oneOf:
required: [subnet_id], required: [port_id]` to indicate that only one
of both can be specified at a time. This had effect on multiple things
in the schema processing turning at the wrong corner (going under oneOf
handling).
With this change explicit tests for the `object` schema type parsing has
been implemented
when operation does not support parameters and body there is no sense in
making request builder mutable.
@gtema gtema merged commit 88269de into main Mar 8, 2024
6 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant