Skip to content

Validation error when generating code for guichet-unique.inpi.fr/api #335

Description

@pulse-mind

When I get the file by clicking on Download (https://guichet-unique.inpi.fr/api/docs/mandataire or get it from https://app.swaggerhub.com/apis/fravetier/INPI-GuichetUnique/3.0.3#/) and run the tool like this fastapi-codegen --input inpi-swagger.json --output app
I get two errors :

ValidationError: 2 validation errors for JsonSchemaObject
properties -> typePersonne -> enum
  value is not a valid list (type=type_error.list)
properties -> typePersonne
  value could not be parsed to a boolean (type=type_error.bool)

The output does not give enough information about the problem so I can't say if the problem is coming from the input file or from fastapi-code-generator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions