Skip to content

Refine the LitCalDecreesSource schema #314

@JohnRDOrazio

Description

@JohnRDOrazio

Currently, the LitCalDecreesSource.json schema is very lax and generic. It tries to accomodate all possible scenarios by simply not requiring most properties.

It would be better to define precisely the shape of the various decrees based on their metadata->action property. Each type of action requires specific properties.

This should be quite similar to the NationalCalendar.json schema, where the shape of the items is defined precisely based on the metadata->action property:

"oneOf": [
{
"$ref": "#/definitions/LitCalMoveFestivity"
},
{
"$ref": "#/definitions/LitCalSetPropertyGrade"
},
{
"$ref": "#/definitions/LitCalSetPropertyName"
},
{
"$ref": "#/definitions/LitCalMakePatron"
},
{
"$ref": "#/definitions/LitCalCreateNewFixed"
},
{
"$ref": "#/definitions/LitCalCreateNewMobile"
}
]

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions