Skip to content

Swagger missing schema(s) #515

@robot-ranger

Description

@robot-ranger

I thought i was being super clever using https://github.com/swagger-api/swagger-codegen to generate a python client from swagger provided by cppagent.

Unfortunately it is all but useless without schemas in the response definitions within swagger.json because the generated code expects a response type of None. (due to there being no schema specified; from swagger's perspective there is no response)

Adding the entirety of the mtconnect model is probably too big of a lift; could we add some high level schema defs?
Parsing the content could be left to the client implementation for now...

Maybe we just add high level schemas for the following:
MTConnectDevices/Header/Devices
MTConnectStreams/Header/Streams
MTConnectError/Header/Errors

...and the content inside [Devices,Streams,Errors] is just str type?

This would at min allow for swagger-codegen clients to function albeit leave actual content parsing and validation to the client implementation?

Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions