PlatformOfTrust / collected-feedback

Feedbacks and Wishlist for Platform of Trust are collected as issues in this repository.
0 stars 1 forks source link

None of the main element pages have schema examples nor information what is mandatory #53

Open kyyberi opened 4 years ago

kyyberi commented 4 years ago

Describe the bug

No JSON examples of main objects.

URL to page if exists

https://dataproduct.oftrust.net/schemas/dps-document-schema/conditionobject https://dataproduct.oftrust.net/schemas/dps-document-schema/priceplanobject https://dataproduct.oftrust.net/schemas/dps-document-schema/qualityobject https://dataproduct.oftrust.net/schemas/dps-document-schema/serviceobject https://dataproduct.oftrust.net/schemas/dps-document-schema/productobject

Expected behavior

Each of the above pages has JSON formatted examples of the element usage. See how Open API spec /Swagger has been built https://swagger.io/specification/ There is example below the elements and REQUIRED elements are clearly stated.

Näyttökuva 2020-9-27 kello 17 24 36

Screenshots

If applicable, add screenshots to help explain your problem.

ralucaoanapopa commented 3 years ago

https://dataproduct.oftrust.net/schemas/dps-document-schema/productobject is 404 probably it was metamorphosed to https://dataproduct.oftrust.net/schemas/dps-document-schema

Schemas in json format exists in https://dataproduct.oftrust.net/schemas/dps-document-schema

But leaving this open for updates as Jarkko askes in description "example below the elements and REQUIRED elements are clearly stated."