Comments (7)
Going to add some special notes to the docs about using the bundled reference.
from api-docs.
Take a look at https://github.com/ogen-go/ogen - it looks like a more active and (maybe) better openapi generator for go.
It still complains about a few problems in the spec, but that can be fixed by just removing a few (possible wrong?) fields:
diff --git a/models/Cooldown.json b/models/Cooldown.json
index f10e582..abbc344 100644
--- a/models/Cooldown.json
+++ b/models/Cooldown.json
@@ -20,8 +20,7 @@
"expiration": {
"type": "string",
"format": "date-time",
- "description": "The date and time when the cooldown expires in ISO 8601 format",
- "minimum": 0
+ "description": "The date and time when the cooldown expires in ISO 8601 format"
}
},
"required": [
diff --git a/models/Survey.json b/models/Survey.json
index 7cd4f44..178ab48 100644
--- a/models/Survey.json
+++ b/models/Survey.json
@@ -22,8 +22,7 @@
"expiration": {
"type": "string",
"format": "date-time",
- "description": "The date and time when the survey expires. After this date and time, the survey will no longer be available for extraction.",
- "minimum": 0
+ "description": "The date and time when the survey expires. After this date and time, the survey will no longer be available for extraction."
},
"size": {
"type": "string",
from api-docs.
@ptxmac thanks for the suggestion. I'll take a look at it when I get some time.
from api-docs.
Thanks for bringing this up! I think other languages had similar issues with references. We'll update the docs with an example people in the community found: you can get the bundled export here from stoplight:
https://stoplight.io/api/v1/projects/spacetraders/spacetraders/nodes/reference/SpaceTraders.json?fromExportButton=true&snapshotType=http_service&deref=optimizedBundle
from api-docs.
This "minimum": 0
also caused problems using smithy-translate. After removing this entry the translation into a smithy-model worked.
from api-docs.
I think we can remove these fields. Do we have any idea why the tooling doesn't support minimum 0?
from api-docs.
Guess it doesn't make sense to have a string of type dateTime have a minimum-value of 0. maybe it'd work if you give it a minimum value of a valid date string? But tbh I wouldn't bother and just remove it :)
from api-docs.
Related Issues (20)
- [Once] 500 response from extract HOT 1
- Document status endpoint HOT 1
- 500 while navigating to the waypoint HOT 1
- Waypoint/SystemWaypoint schema inconsistency HOT 2
- Market Transaction minimums incorrect in OpenAPI Spec HOT 1
- Only a Single Sector HOT 1
- Rate limit response is sometimes different HOT 3
- Inconsistency in OpenAPI spec HOT 1
- 500 when creating survey at X1-XA95-57213D HOT 5
- Better Dynamic Respone Generation HOT 1
- ShipRefineResponse Response Code Mismatch HOT 1
- ShipRefineResponse - tradeSymbol vs Symbol Mismatch HOT 1
- Status API resetDate description HOT 2
- 500 response on survey at X1-DN76-32104E HOT 5
- /game/loans missing from SpaceTraders.json HOT 2
- 500 from negotiateContract HOT 1
- ShipyardTransaction.shipSymbol is confusing HOT 4
- Fails to build with openapi-core
- 500 from /extract HOT 1
- Error when generating client library HOT 2
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 api-docs.