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

Export to jsonschema fails if object Field contains no subfields #218

Closed
hcrosse opened this issue May 23, 2024 · 1 comment
Closed

Export to jsonschema fails if object Field contains no subfields #218

hcrosse opened this issue May 23, 2024 · 1 comment

Comments

@hcrosse
Copy link
Contributor

hcrosse commented May 23, 2024

I'm encountering a StopIteration error on this line when trying to export from a model that contains a Field of type: object but contains no subfields. The jsonschema specification allows for empty objects so this seems like an unintentional error rather than deliberate decision.

Example model that fails

models:
  A:
    title: A
    description: ABC
    type: object
    fields:
       B:
        type: object
        description: BCD
@simonharrer
Copy link
Contributor

Fixed in #219

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

No branches or pull requests

2 participants