artsmolin / pythogen

Awesome python HTTP-clients from OpenAPI
https://artsmolin.github.io/pythogen/
MIT License
66 stars 6 forks source link

Processing const property types #54

Closed FArseny closed 1 year ago

FArseny commented 1 year ago

Currently pythogen can't parse properties identified as const, for example:

InfoData:
  properties:
    status: {const: ok, title: Status}

Running clients print out these error: Exception: Unable to parse schema "<built-in function id>", unknown type "None" on "{'const': 'ok', 'title': 'Status'}"