Class: Glossarist::V3::ConceptDate
- Inherits:
-
ConceptDate
- Object
- ConceptDate
- Glossarist::V3::ConceptDate
- Defined in:
- lib/glossarist/v3/concept_date.rb
Overview
V3 variant of ConceptDate. The base ConceptDate types
date as :date_time (ISO 8601 datetime only), but the v3 schema
(concept-model/schemas/v3/concept.yaml) declares
concept_date:
properties:
date:
type: string
format: date
which accepts any date string — full ISO 8601 datetime ("2023-01-01T00:00:00+00:00"), calendar date ("2023-01-01"), or year-only ("2023"). Datasets such as the IALA Dictionary (datasets/iala-/concepts/.yaml) use year-only strings for accepted/retired lifecycle markers, so the v3 model needs to round-trip those without losing the value.
See BUG_REPORT.md for the full investigation.
Instance Method Summary collapse
-
#to_yaml_date ⇒ Object
The
dateis already a free-form string in V3, so the wire form is the value itself — no iso8601 coercion.
Instance Method Details
#to_yaml_date ⇒ Object
The date is already a free-form string in V3, so the wire form
is the value itself — no iso8601 coercion.
32 33 34 |
# File 'lib/glossarist/v3/concept_date.rb', line 32 def to_yaml_date date end |