hbz / lobid-resources

Transformation, web frontend, and API for the hbz catalog as LOD
http://lobid.org/resources
Eclipse Public License 2.0
7 stars 7 forks source link

Provide metafacture plugin checking structural consistence of a JSON document #956

Closed dr0i closed 3 years ago

dr0i commented 5 years ago

We encounter several issues of structural inconsistence of json documents, see e.g. #904. As these may break our API it would be nice to check the integrity of that json before adding it to an index rather than being informed by customers if an error occurs.

This could be done with a metafacture plugin.

acka47 commented 5 years ago

Looks like a job for JSON schema: https://json-schema.org/

dr0i commented 5 years ago

Yes, and this java-implementation of validator should be fine: https://github.com/java-json-tools/json-schema-validator.

dr0i commented 4 years ago

@acka47 are you willing to provide a schema for lobid-resources?

acka47 commented 3 years ago

are you willing to provide a schema for lobid-resources?

I opened another issue for this: #1079

acka47 commented 3 years ago

@fsteeg, please move issue to metafacture-core

fsteeg commented 3 years ago

@fsteeg, please move issue to metafacture-core

Closing, moved to https://github.com/metafacture/metafacture-core/issues/347