Skip to content

Release 0.5.0 - Clara#145

Merged
edwinvandenbelt merged 15 commits intoTOMP-WG:masterfrom
edwinvandenbelt:release-0.5.0
May 5, 2020
Merged

Release 0.5.0 - Clara#145
edwinvandenbelt merged 15 commits intoTOMP-WG:masterfrom
edwinvandenbelt:release-0.5.0

Conversation

@edwinvandenbelt
Copy link
Collaborator

Breaking release. Instead of kebab-cased json, we now use camelCased json. Also other breaking issues. Look at the release notes in wiki

ARBaart and others added 14 commits March 10, 2020 15:27
TOMP-WG#114 remove asset, is included in typeOfAsset
TOMP-WG#110 consistency in Operator Information
Changed systemInformation from array to single object

Change openingTimes to returnTimes

Fix condition inheritance
Reference: https://swagger.io/docs/specification/data-models/oneof-anyof-allof-not/

Remove duplicate customer requirements

Replace kebab-case with camelCase

Add missing TO tags

Remove station_status fields from stationInformation

Remove duplicate area definition, clarify area usage

Remove gender (should be in asset (type) if anywhere)

Fix allOf and oneOf syntax

Use built-in date format

Fix response codes

Alphabetise sections
Copy link

@Tjalle Tjalle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello Edwin,

I've gone over this document & the changes and added some comments.

hope this helps,

Tjalle

headers:
Location:
description: The URI where the created options can be found, in case of 'provide-ids' = true
description: The URI where the created options can be found, in case of 'provideIds' = true
schema:
type: string
example: '/planning-options/1234'
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/planningOptions/1234 -> camelCase

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tjalle, we agreed on kebab-casing the URLs.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, my bad.

'400':
$ref: '#/components/responses/400BadRequest'
'401':
$ref: '#/components/responses/401Unauthorized'
'404':
$ref: '#/components/responses/404NotFound'
'410':
$ref: '#/components/responses/410Gone'
callbacks: # webhooks
# as described in https://swagger.io/docs/specification/callbacks/
booking-operations:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bookingOperations

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a issue -> url

'410':
$ref: '#/components/responses/410Gone'

/legs/{id}/available-assets:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

availableAssets

/operator/pricing-plans:

/operator/available-assets:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

availableAssets

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a issue -> url

'401':
$ref: '#/components/responses/401Unauthorized'

/operator/pricing-plans:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pricingPlans

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a issue -> url

type: object
description: provides current asset location & duration and distance of the current leg
required:
- coordinates
- coordinate
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coordinate is a req. field, but in the properties below it's still coordinates

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check, I'll repair this one


license:
type: object
description: driver or usage license for a specific user. Contains the number and the asset-type you're allowed to operate (e.g. driver license for CAR)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and the assetType you're allowed

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. repaired

description: the amount of people that have to travel from `from` to `to` [https://github.com/efel85/TOMP-API/issues/56]
type: number
useAssets:
description: when you use the /operator/available-assets and you want to book a displayed asset, you must be able to request o a planning-option for the specific asset (with provide-ids=true), post a booking with the provided id and send directly a commit. This field should contain the asset to book.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when you use the /operator/availableAssets

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a issue -> url

required:
- stationId
- name
- coordinate
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

required/properties-> coordinate vs coordinates

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

repaired

TOMP-API.yaml Outdated
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maasId

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kebab case => camelCase was only for the JSON.

@edwinvandenbelt edwinvandenbelt merged commit c47693c into TOMP-WG:master May 5, 2020
@edwinvandenbelt edwinvandenbelt deleted the release-0.5.0 branch October 7, 2020 06:49
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 this pull request may close these issues.

3 participants