Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse models without type: object as objects if they contain properties? #1705

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

danmichaelo
Copy link

Follow-up from #1178 (comment) :

It seems like most OpenAPI tooling supports objects to be defined implicitly, without type: object. What do you think about supporting that in openapi-typescript-codegen too?

I've tried to dig into the JSON Schema spec to find out what's the correct way to handle this case, but unsuccessfully.

I'm not sure if this PR is complete, but I've created it to start the discussion of whether implicit objects should be supported or not.

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.

None yet

1 participant