Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is only_type located in the schema settings option #30

Open
bidoubiwa opened this issue Jun 21, 2023 · 1 comment
Open

Where is only_type located in the schema settings option #30

bidoubiwa opened this issue Jun 21, 2023 · 1 comment
Labels
question Further information is requested

Comments

@bidoubiwa
Copy link
Contributor

bidoubiwa commented Jun 21, 2023

Previously the only_type was fetched in this.config.schema_config?.only_type, nonetheless, using typescript it appears the config is located in this.config.schema?.only_type.

This should be tested.

if (this.config.schema?.only_type) {
      // TODO: Might be an error, should be `schema.only_type` and not `schema_config.only_type`
      // Leaving old code in comment in case it is not an error
      // if (data["@type"] !== this.config.schema_config?.only_type) return;
      if (data["@type"] !== this.config.schema?.only_type) return;
    }
@bidoubiwa bidoubiwa added the question Further information is requested label Jun 21, 2023
@qdequele
Copy link
Member

It looks like now you have a new schema_settings field in config.

if (this.config.schema_settings?.only_type) {
  if (data['@type'] !== this.config.schema_settings?.only_type) return
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants