diff --git a/CHANGES.rst b/CHANGES.rst index 748ea779..9855f6ab 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -15,7 +15,8 @@ Changes to API Other ----- -- +- Add ``ngroups`` keyword to ``mask`` schema to match + parkeys on crds [#249] 1.9.0 (2023-12-11) ================== diff --git a/src/stdatamodels/jwst/datamodels/schemas/mask.schema.yaml b/src/stdatamodels/jwst/datamodels/schemas/mask.schema.yaml index df551ad9..47aa31d1 100644 --- a/src/stdatamodels/jwst/datamodels/schemas/mask.schema.yaml +++ b/src/stdatamodels/jwst/datamodels/schemas/mask.schema.yaml @@ -8,6 +8,7 @@ allOf: - $ref: keyword_exptype.schema - $ref: keyword_readpatt.schema - $ref: keyword_preadpatt.schema +- $ref: keyword_ngroups.schema - type: object properties: dq: diff --git a/src/stdatamodels/jwst/datamodels/tests/test_schema_against_crds.py b/src/stdatamodels/jwst/datamodels/tests/test_schema_against_crds.py index 9a191796..1bc6451f 100644 --- a/src/stdatamodels/jwst/datamodels/tests/test_schema_against_crds.py +++ b/src/stdatamodels/jwst/datamodels/tests/test_schema_against_crds.py @@ -239,7 +239,7 @@ def test_crds_selectors_vs_datamodel(jail_environ, instrument): # No need to actually load the reference file into the datamodel! with ref_model() as m: for key in parkeys: - assert len(m.search_schema(key.lower())) > 0 + assert len(m.search_schema(key.lower())) > 0, f"{f} missing {key} required by {r.basename}" break except IrrelevantReferenceTypeError as e: log.debug(e)