You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes, error messages can be overwhelming and its helpful to validate a
particular component of the schema. We can use the reference argument in json_validator to only validate against part of the schema. This is extremely
helpful if you want to isolate validation issues.
For example, creators are tricky because they have subcomponents. Lets modify
a creator object and check if its still properly formatted.
project_metadata_broken_creator <- project_metadata_list_entities
creator_1 <- project_metadata_broken_creator$creators[[1]]
# lets enter the ORCID as a number
creator_1$nameIdentifier <- 343158628
project_metadata_broken_creator$creators[[1]] <- creator_1
project_metadata_json <- prep_for_json(project_metadata_list_entities) |>
jsonlite::toJSON(pretty = TRUE)
the validate json error messages are not ergonomic and require background to be able to parse
The text was updated successfully, but these errors were encountered: