Skip to content

feat: improve additional properties support#126

Merged
mnahkies merged 6 commits into
mainfrom
mn/125/additional-properties
Feb 17, 2024
Merged

feat: improve additional properties support#126
mnahkies merged 6 commits into
mainfrom
mn/125/additional-properties

Conversation

@mnahkies
Copy link
Copy Markdown
Owner

Should help with #125 and #44

  • Makes schema generation aware of additionalProperties
  • Fixes interpretation of additionalProperties

Namely:

type: object
additionalProperties: true

is equivalent to:

type: object
additionalProperties: {}

and

type: object

Based on the guidance about free-form objects here https://swagger.io/docs/specification/data-models/data-types/#object

@mnahkies mnahkies force-pushed the mn/125/additional-properties branch from 549742c to f497255 Compare February 17, 2024 13:24
@mnahkies mnahkies marked this pull request as ready for review February 17, 2024 13:25
@mnahkies mnahkies enabled auto-merge (squash) February 17, 2024 13:25
@mnahkies mnahkies merged commit 7a8c289 into main Feb 17, 2024
@mnahkies mnahkies deleted the mn/125/additional-properties branch February 17, 2024 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant