Comments (3)
Looks like the Stoplight docs are in error. Should be one trip type. A PR can be created here https://github.com/openmobilityfoundation/mds-openapi
from mds-openapi.
I'm not sure exactly how to change this trip_type array to an enumerated value based on mode in OpenAPI.
Maybe @mplsmitch @thekaveman could help advise.
Also might need to edit in passenger services, car share, delivery robots, and micromobility pages.
I have a fix-trip-type
branch started for this work here.
from mds-openapi.
The schema does allow only a single trip_type
(via the minItems: 1
and maxItems: 1
qualifiers), however it seems like an error since this type should be a string and not an array.
I think the changes would be:
trip_type:
type: string
Then for each of the mode-specific trip
definitions, raising the enum
property out of the items
key, e.g. for passenger-services.trip
:
trip_type:
enum:
- private
- shared
- reservation
- empty
from mds-openapi.
Related Issues (19)
- Create project in Stoplight HOT 3
- Provider API
- Agency API
- Policy API
- Geography API
- Jurisdiction API
- Metrics API
- Create v2.0 branch HOT 4
- Agency GET endpoints return MDS version in responses HOT 5
- Describe 400 for Provider endpoints with params
- Use endpoint for summary field
- Policy rule conditional requirements
- Fix mode trip_id requirements and event_types
- Add securitySchemes for Metrics
- Make sure /entity/{entity_id} endpoints return an array of length 1
- Media type in OpenAPI HOT 3
- Is it possible to create somehow one OpenApi file? HOT 2
- vehicle_type allowed values HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mds-openapi.