datamodel-code-generator icon indicating copy to clipboard operation
datamodel-code-generator copied to clipboard

generate request body

Open Rogalek opened this issue 1 year ago • 5 comments
trafficstars

Can datamodel-code-generator generate request body?

If not, could you add this feature?

pydantic_core._pydantic_core.ValidationError: 1 validation error for Config
openapi_scopes.1
  Input should be 'schemas', 'paths', 'tags' or 'parameters' [type=enum, input_value='requestBodies', input_type=str]

Rogalek avatar Nov 30 '23 12:11 Rogalek

@Rogalek

Hello The quick answer is no.

What do you mean by request body? Can you give an example of expected behavior?

denisart avatar Nov 30 '23 12:11 denisart

@Rogalek I'm sorry for my late response.

Did you talk about this? https://swagger.io/docs/specification/describing-request-body/ We can set a tag as a feature request.

koxudaxi avatar Dec 22 '23 14:12 koxudaxi

@koxudaxi yes I was talking about this.

Rogalek avatar Feb 07 '24 19:02 Rogalek