Resources
Resources are top-level objects that represent a specific PODS resource. An example of a resource is a disaster event. Each resource may contain its own set of properties and values, which should be handled by interpreters according to its definition.
These rules apply to all resources in this specification:
- All resources MUST be a valid JavaScript Object Notation (JSON) the resource type.
- All resources MUST have
snake_casekeys. - All resources MUST have a
specproperty with the constant value"https://pagasa-parser.github.io/pods/v0.1.0/". - All resources MUST have a
versionproperty with the constant value"v0.1.0". object. - All resources MUST have a
typeproperty with a string value, denoting - All resources MUST allow an optional
metadataproperty, containing a metadata object. - All resources MAY allow additional properties, which should be handled by interpreters according to its definition.
- All resources SHOULD allow an optional
citationproperty within all of its properties with an object type, excluding those required above, containing a citation object or array. - All resources MUST encode timestamps in ISO 8601 format (e.g.
2024-01-14T06:38:58.497Z). - All resources MUST NOT allow the properties specifically defined above to be overridden.
- All resources SHOULD order the properties defined above as they appear in this definition.
Canonical definition
The canonical definition for this resource is maintained in its TypeScript type definition.