diff --git a/dandiapi/api/tests/factories.py b/dandiapi/api/tests/factories.py index ac0998590..7b3f3e09a 100644 --- a/dandiapi/api/tests/factories.py +++ b/dandiapi/api/tests/factories.py @@ -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', } ], diff --git a/setup.py b/setup.py index 4a988ff8d..e7db9cc0a 100644 --- a/setup.py +++ b/setup.py @@ -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 diff --git a/web/src/components/Meditor/types.ts b/web/src/components/Meditor/types.ts index 5ca93b13f..0910a98c2 100644 --- a/web/src/components/Meditor/types.ts +++ b/web/src/components/Meditor/types.ts @@ -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 => (