Skip to content

Commit

Permalink
Merge pull request #1976 from dandi/schema-version-0.6.8
Browse files Browse the repository at this point in the history
Bump dandischema to 0.10.2 (schema version 0.6.8)
  • Loading branch information
jjnesbitt authored Jul 15, 2024
2 parents 6e55e1d + 359e70f commit 0d0dc64
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions dandiapi/api/tests/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def metadata(self):
{
'name': f'{faker.Faker().last_name()}, {faker.Faker().first_name()}',
'roleName': ['dcite:ContactPerson'],
'email': faker.Faker().email(),
'schemaKey': 'Person',
}
],
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
install_requires=[
'celery',
# Pin dandischema to exact version to make explicit which schema version is being used
'dandischema==0.10.1', # schema version 0.6.7
'dandischema==0.10.2', # schema version 0.6.8
'django~=4.1.0',
'django-admin-display',
# Require 0.58.0 as it is the first version to support postgres' native
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/Meditor/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const isJSONSchema = (schema: JSONSchemaUnionType): schema is JSONSchema7

export const isBasicSchema = (schema: JSONSchemaUnionType): schema is BasicSchema => (
isJSONSchema(schema)
&& (isBasicType(schema.type) || schema.type === undefined)
&& (isBasicType(schema.type))
);

export const isObjectSchema = (schema: JSONSchemaUnionType): schema is ObjectSchema => (
Expand Down

0 comments on commit 0d0dc64

Please sign in to comment.