We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
custom_schema
write_to
Schema passed to custom_schema during AsdfFile.__init__ is not used for write_to.
AsdfFile.__init__
import asdf schema_contents = """%YAML 1.1 --- id: "http://example.com/schemas/your-custom-schema" $schema: "http://stsci.edu/schemas/yaml-schema/draft-01" type: object properties: value: type: integer""" with open("my_schema.yaml", "w") as f: f.write(schema_contents) af = asdf.AsdfFile(custom_schema="my_schema.yaml") af["value"] = "a" af.write_to("foo.asdf") # no ValidationError
asdf version: main python version: 3.10 operating system: mac
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description of the problem
Schema passed to
custom_schema
duringAsdfFile.__init__
is not used forwrite_to
.Example of the problem
System information
asdf version: main
python version: 3.10
operating system: mac
The text was updated successfully, but these errors were encountered: