Skip to content

Commit

Permalink
adjust JSON schema reference to match other colander schema version f…
Browse files Browse the repository at this point in the history
…or OpenAPI class
  • Loading branch information
fmigneault committed Sep 1, 2023
1 parent a603e37 commit 57dd866
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions weaver/wps_restapi/colander_extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
convert_regex_validator
)
from cornice_swagger.swagger import CorniceSwagger, DefinitionHandler, ParameterHandler, ResponseHandler
from jsonschema.validators import Draft202012Validator
from jsonschema.validators import Draft7Validator

if TYPE_CHECKING:
from typing import Any, Dict, Iterable, List, Optional, Sequence, Type, Union
Expand Down Expand Up @@ -1195,7 +1195,7 @@ class SchemaRefMappingSchema(ExtendedNodeInterface, ExtendedSchemaBase):

# typings and attributes to help IDEs flag that the field is available/overridable

_schema_meta = Draft202012Validator.META_SCHEMA["$schema"] # type: str
_schema_meta = Draft7Validator.META_SCHEMA["$schema"] # type: str
_schema_meta_include = False # type: bool
_schema = None # type: str
_schema_include = True # type: bool
Expand Down

0 comments on commit 57dd866

Please sign in to comment.