-
Notifications
You must be signed in to change notification settings - Fork 25
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
Add openapi.yml file with autopilot routes #1724
Conversation
7837cc5
to
6cdc256
Compare
6cdc256
to
12b08d2
Compare
@@ -104,11 +104,11 @@ type ( | |||
|
|||
// MinPriceTableValidity is the minimum accepted value for `Validity` in the | |||
// host's price settings. | |||
MinPriceTableValidity time.Duration `json:"minPriceTableValidity"` | |||
MinPriceTableValidity DurationMS `json:"minPriceTableValidity"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice side effect of the tedious work of writing this specification is that you really don't miss any type. Found 2 fields that we still haven't changed to our MS type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, going to be such a pain though but definitely cool we'll have docs inside of the repo.
Co-authored-by: Peter-Jan Brone <peterjan.brone@gmail.com>
Added an openapi.yml spec with the specifications for the autopilot routes and a CI step to validate it. The goal is to eventually have a complete spec for the V2 API that we can use to generate API docs as well as making sure that there is always a valid spec for every given commit in the repo.