DINA-Web / agent-specs

Specifications for the Agent Module
MIT License
1 stars 3 forks source link

createdOn and createdBy missing in schema #34

Closed cgendreau closed 3 years ago

cgendreau commented 3 years ago

createdOn and createdBy are missing from person and organization schema. createdOn should be specified as a date-time format and they are both mandatory on the response only (you can't send it in a data mutation).

xuemeigan commented 3 years ago

Need to do investigation, see if there is a way to conditional the current common component to add or remove the createdOn

cgendreau commented 3 years ago

it's the same thing as the id, it is read only.

cgendreau commented 3 years ago

see readonly http://spec.openapis.org/oas/v3.0.3

cgendreau commented 3 years ago

createdBy should also be readOnly, it is set server-side. date-time should be more specific about the format and force ISO 8601.

xuemeigan commented 3 years ago
cgendreau commented 3 years ago

createdOn can only be returned in 1 format. The specs should only specify 1 format.

xuemeigan commented 3 years ago

So should we use the UTC time: 1985-04-12T23:20:50.52Z, as createdOn is server side generated

xuemeigan commented 3 years ago