-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Agency schema #172
Agency schema #172
Conversation
Ooh, I see this will conflict with #161. Happy to deal with those conflicts however you see fit. |
aca779f
to
a489fbc
Compare
Still waiting on #197, yes? |
@karcass yes, and #203 if we go that route. |
that being said, I don't think it would be a bad idea to get JSON schema definitions of the expected return values for an Agency API for now. We can ignore the |
Agreed, let me put a schema on the agency to-do list. It should be super simple. Register just reads back the vehicle it got, and |
hmm yeah. perhaps it is a good idea to have valid schema definitions for both the To utilize the common datatype, you can see how we generate the official schemas in |
I will likely require some guidance to be efficient / effective. |
@karcass quick question - you guys did swagger / openAPI specs for the reference implementation, or I am not remembering that correctly. |
@hunterowens I'm evaluating options. Swagger seems like it's more suited for start-with-swagger (code generation etc.) rather than bolt-on-afterwards, and I didn't start with it. I am tentatively leaning towards using |
Closing this as the PR is no longer inline with the latest version of Agency spec. We will revisit the issue (#169 ) to generate a schema once the Agency sandbox evaluation period has wrapped up. |
@toddapetersen I'd prefer to keep this open, as getting a formally definition of the schema, rather than a written version, is pretty critical. |
@hunterowens we will open a separate PR for that. This PR is out of date. We left the issue open for tracking. |
I'm happy to update this once you feel like outstanding changes to the agency spec have been resolved (#197, #203, perhaps others?). Do you have any comments on my questions above, especially regarding We may also want to migrate to openapi, as suggested above, though my inclination is to do things one-at-a-time. |
@ian-r-rose If you're offering to do part of my job for me, I graciously accept! I didn't think it was fair for us to rejigger everything and have you keep chasing a moving target. Yes, Happy to answer any additional questions. |
@ian-r-rose do you plan to update this PR? |
Closing in favor of #238 |
Fixes #169. Partial fix for #168.
I have tried to hew as closely as I could to the description in the README, with a couple of exceptions for things I thought were mistakes or unclear:
reason_code
in the update vehicle status API instead be the same asevent_type_reason
from thestatus_change
API? It seemed to me that it should from the narrative description.MDS_Feature_Point
s as suggested in [agency] Consider using GEOJSON features #168.vehicle_type
andpropulsion_type
seemed out of sync with the provider API. I updated them.These schema are as yet not very well tested, and I am not aware of any synthetic data to put them through the works. Do you have anything you could point me towards @hunterowens or @thekaveman?
Finally, I notice that the spec does not include
version
fields in them, as is the case forprovider
. Should we consider adding that?I have not added schema for any of the agency response types at the moment.