cedar-model-typescript-library 1.0.21 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -1
- package/index.esm.js +1 -1
- package/index.esm.js.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/index.umd.js +1 -1
- package/index.umd.js.map +1 -1
- package/org/metadatacenter/io/reader/json/JsonContainerArtifactReader.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/yaml/YamlSourcePolicy.d.ts +5 -0
- package/org/metadatacenter/io/reader/yaml/YamlSourcePolicy.d.ts.map +1 -1
- package/org/metadatacenter/io/reader/yaml/YamlTemplateInstanceReader.d.ts +26 -0
- package/org/metadatacenter/io/reader/yaml/YamlTemplateInstanceReader.d.ts.map +1 -1
- package/org/metadatacenter/io/writer/json/JsonAbstractContainerArtifactWriter.d.ts +6 -1
- package/org/metadatacenter/io/writer/json/JsonAbstractContainerArtifactWriter.d.ts.map +1 -1
- package/org/metadatacenter/io/writer/json/JsonTemplateElementWriter.d.ts.map +1 -1
- package/org/metadatacenter/io/writer/json/JsonTemplateWriter.d.ts.map +1 -1
- package/org/metadatacenter/model/cedar/template-instance/InstanceInflater.d.ts +11 -8
- package/org/metadatacenter/model/cedar/template-instance/InstanceInflater.d.ts.map +1 -1
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -103,8 +103,16 @@ JavaScript number cannot recover the original digits; use a raw source or a stri
|
|
|
103
103
|
Raw readers reject duplicate decoded keys, trailing JSON, multiple YAML documents, nonfinite numbers,
|
|
104
104
|
custom YAML tags and recursive aliases. YAML uses core scalar resolution: `yes` is a string, `012`
|
|
105
105
|
is decimal twelve, and timestamps stay strings until their model property reads them. Keys retain
|
|
106
|
-
their exact spelling.
|
|
106
|
+
their exact spelling. An instance field value is always a string, so an unquoted number or boolean
|
|
107
|
+
in one keeps the text it was written with, and `value: 007` reads as `"007"`. The YAML instance
|
|
108
|
+
reader refuses what the Java reader refuses in an instance's data. A null, an empty mapping or an
|
|
109
|
+
empty list is refused there, except a null value beside a label, a preferred label or a notation,
|
|
110
|
+
which reads as no value. A field value must be a string, a number or a boolean, and a child or an
|
|
111
|
+
attribute must be a mapping. Malformed sources raise an error; readers never replace them with
|
|
112
|
+
empty artifacts.
|
|
107
113
|
`JsonSourcePolicy` is also available from `/policy`; `YamlSourcePolicy` is in the full package.
|
|
114
|
+
Browser bundlers resolve `/policy` to its ES module bundle; CommonJS consumers retain the
|
|
115
|
+
CommonJS entry point.
|
|
108
116
|
|
|
109
117
|
`TimestampPolicy` and `IsoDate` preserve the source calendar, explicit UTC offset and up to nine
|
|
110
118
|
fractional-second digits. Missing offsets and impossible dates are rejected. Minute-only times,
|