Skip to content
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

Too many required attributes in json.schema #93

Open
dcorallo opened this issue May 29, 2024 · 0 comments · May be fixed by #94
Open

Too many required attributes in json.schema #93

dcorallo opened this issue May 29, 2024 · 0 comments · May be fixed by #94

Comments

@dcorallo
Copy link

The schema ShipNavRoute.json is

{
  "type": "object",
  "description": "The routing information for the ship's most recent transit or current location.",
  "properties": {
    "destination": {
      "$ref": "./ShipNavRouteWaypoint.json"
    },
    "origin": {
      "$ref": "./ShipNavRouteWaypoint.json"
    },
    "departureTime": {
      "type": "string",
      "format": "date-time",
      "description": "The date time of the ship's departure."
    },
    "arrival": {
      "type": "string",
      "format": "date-time",
      "description": "The date time of the ship's arrival. If the ship is in-transit, this is the expected time of arrival."
    }
  },
  "required": [
    "destination",
    "departure",
    "origin",
    "departureTime",
    "arrival"
  ]
}

departure is marked as required, but not defined as a property.

Similarly, in ShipyardShip.json, symbol is required, but not a property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant