Skip to content

Commit

Permalink
add ngroups to mask schema
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Jan 23, 2024
1 parent 051be5f commit a030cda
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
==================
Expand Down
1 change: 1 addition & 0 deletions src/stdatamodels/jwst/datamodels/schemas/mask.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a030cda

Please sign in to comment.