Skip to content

Commit

Permalink
follow-up removal of provider_id from schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman committed Jul 10, 2020
1 parent dcb38d2 commit fe65260
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 0 additions & 5 deletions agency/post_vehicle.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,6 @@
"propulsion_types"
],
"properties": {
"provider_id": {
"$id": "#/definitions/vehicle/properties/provider_id",
"$ref": "#/definitions/uuid",
"description": "The UUID for the Provider, unique within MDS"
},
"device_id": {
"$id": "#/definitions/vehicle/properties/device_id",
"$ref": "#/definitions/uuid",
Expand Down
3 changes: 1 addition & 2 deletions schema/agency.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ def post_vehicle_schema(common_definitions):
}

# merge common vehicle information, with Agency tweaks
vehicle = common.vehicle_definition(common_definitions, provider_name=False)
vehicle["required"].remove("provider_id")
vehicle = common.vehicle_definition(common_definitions, provider_name=False, provider_id=False)

schema["required"] = vehicle["required"] + schema["required"]
schema["properties"] = { **vehicle["properties"], **schema["properties"] }
Expand Down

0 comments on commit fe65260

Please sign in to comment.