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

feat: extend image.metadefs schemas #37

Merged
merged 3 commits into from
Mar 14, 2024
Merged

feat: extend image.metadefs schemas #37

merged 3 commits into from
Mar 14, 2024

Conversation

gtema
Copy link
Owner

@gtema gtema commented Mar 14, 2024

  • fix(openapi): fix path parameter naming misuse
  • feat: add ability to pass multiple api-ref docs
  • feat: cover image.metadef schemas

when global path parameter name is constructed out of not parameter path
elements present before the parameter itself we get /volumes/{volume_id} =>
volumes_volume_id. But for paths longer then that it causes parameters to be
overriden volumes/{volume_id}/metadata/{id} is still volumes_volume_id
and that leads to parameter description eventually showing something
different. Instead construct global path parameter name as all non-param
elements + param_name itself (volumes_metadata_volume_id)
Some services have few api-ref docs that need to be processed. Convert
param into the list and iterate over it
This is a relatively big change since metadefs themselves are not
trivial.

- rework response_key handling
- rework subtypes conflict resolution
- add new cli command type "list_from_struct" which allows building a
  "list" command for API that return object (it does not seem reasonable
  to alter data in SDK for that since it forces some assumptions about
  the data)
- de-duplicate "domain" schema in identity.auth.token to make use of new
  subtype naming
@gtema gtema merged commit 2f8b034 into main Mar 14, 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