Skip to content

Commit

Permalink
Merge pull request #3705 from eslavich/JP-809-support-jsonschema-3.x
Browse files Browse the repository at this point in the history
Changes necessary to support jsonschema 3.x
  • Loading branch information
nden authored Jun 24, 2019
2 parents 331d7b9 + e972ce2 commit b9027f7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
13 changes: 11 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
0.14.0 (Unreleased)
===================

datamodels
----------

- Use public API of jsonschema to ease upgrade to 3.x.


0.13.8 (Unreleased)
===================

extract_1d
----------

Expand Down Expand Up @@ -34,7 +43,7 @@ datamodels

- Fixed corruption of FITS tables with unsigned int columns. [#3680]


0.13.5 (2019-06-19)
===================

Expand Down Expand Up @@ -247,7 +256,7 @@ extract_2d

- Replaced a white space in the names of grism objects with an underscore. [#3517]

- Update WFSS slit names to use simple integer value, and add accompanying unit
- Update WFSS slit names to use simple integer value, and add accompanying unit
test for NIRCAM grism extract_2d [#3632].

master_background
Expand Down
2 changes: 1 addition & 1 deletion jwst/associations/lib/asn_schema_jw_level2b.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Association: JWST DMS Level2a->Level2b",
"description": "The data structure that, within the JWST DMS processing system, defines how to group level2a exposures to produce Level2b data products.",
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion jwst/associations/lib/asn_schema_jw_level3.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/schema#",
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Association: JWST DMS Level2b->Level3",
"description": "The data structure that, within the JWST DMS processing system, defines how to group level2b exposures to produce Level3 data products.",
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion jwst/datamodels/fits_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def _fits_item_recurse(validator, items, instance, schema):
def _fits_type(validator, items, instance, schema):
if instance in ('N/A', '#TODO', '', None):
return
return validators._validators.type_draft4(validator, items, instance, schema)
return validators.Draft4Validator.VALIDATORS["type"](validator, items, instance, schema)


FITS_VALIDATORS = HashableDict(asdf_schema.YAML_VALIDATORS)
Expand Down

0 comments on commit b9027f7

Please sign in to comment.