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

DEP: JSON-schema dependency #434

Merged
merged 1 commit into from
Jan 30, 2024
Merged

DEP: JSON-schema dependency #434

merged 1 commit into from
Jan 30, 2024

Conversation

janbjorge
Copy link
Contributor

No description provided.

@janbjorge janbjorge self-assigned this Jan 29, 2024
@janbjorge janbjorge changed the title DEP: jsonschema dependency DEP: JSON-schema dependency Jan 29, 2024
Comment on lines +366 to +372
@model_validator(mode="after")
def _check_class_data_spec(self) -> Root:
if (
self.root.class_ in (enums.FMUClassEnum.table, enums.FMUClassEnum.surface)
and hasattr(self.root, "data")
and self.root.data.root.spec is None
):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BUG from #409

@janbjorge janbjorge marked this pull request as ready for review January 29, 2024 20:43
@janbjorge janbjorge merged commit e5e02f9 into equinor:main Jan 30, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants