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

do not use same abstraction for no object properties and empty #93

Open
hauner opened this issue Apr 18, 2022 · 0 comments
Open

do not use same abstraction for no object properties and empty #93

hauner opened this issue Apr 18, 2022 · 0 comments

Comments

@hauner
Copy link
Member

hauner commented Apr 18, 2022

see #92

looks likes this case

components:
  schemas:
    AnyValue: {}

and this case

    Foo:
      type: object
      properties:
        bar:
          readOnly: true
          allOf:
            - $ref: '#/components/schemas/Bar'

should not both use NoDataType. For the second case the processor must not generate a class (see object-read-write-properties test case), for the first it could generate one. It should probably have an explicit EmptyDataType.

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

1 participant