Closed nikitawootten-nist closed 1 year ago
This design has a few caveats:
abstract static
members, making a DatatypeAdapter
's Item
generic parameter little more then a type annotation... The adapter must separately implement a name
field. There is a workaround, but it's unmaintainable at best: https://stackoverflow.com/a/43723730Provider
class (see the ADR entry for details)node-fetch
, forcing me to add --force-exit
for nowOSCALMetaschema.spec.ts
test passes even though the MetaschemaProvider
only contains a "string" type. Calling getDatatypeAdapter()
on any non-string fields or flags would trigger an error.
Committer Notes
A toy implementation of the Datatype and Item concepts of the Metaschema. This implementation only implements a string datatype and corresponding adapter. Please pay extra attention to the
AbstractDatatypeAdapter
's shape.Be sure to check some caveats here: https://github.com/usnistgov/metaschema-node/pull/34#issuecomment-1310852758
All Submissions:
Changes to Core Features: