elasticio / odata2openapi

OData to OpenAPI Converter
https://www.elastic.io
MIT License
33 stars 23 forks source link

Move logic for determining if value must be wrapped in quotes in a URL to the service definition #28

Closed jhorbulyk closed 6 years ago

jhorbulyk commented 6 years ago

In OData, when certain datatypes appear in the URL, they must be wrapped in quotes (e.g. OData's string type). Other datatypes must not be wrapped in quotes (e.g. OData numeric types and GUIDs). Currently, the swagger result produced by convert() handles this information correctly (e.g. path variables include or don't include quotes appropreately). However, this information isn't available in the service definition produced by parse(). Ideally, this information should be available in this document so that those consuming this library to make an interpreter can have access to this information.