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

FIX: Replace invalid JSON schema types #73

Merged
merged 1 commit into from
Oct 2, 2024
Merged

Conversation

carlwilson
Copy link
Member

  • use of Path and uuid in model types yields an invalid JSON schema;
  • replaced both types in model classes with str;
  • added str(path) and hex representation of uuid in the respective classes; and
  • fixed tests.

- use of `Path` and `uuid` in model types yields an invalid JSON schema;
- replaced both types in model classes with `str`;
- added `str(path)` and hex representation of `uuid` in the respective classes; and
- fixed tests.
@carlwilson carlwilson added the bug Something isn't working label Sep 25, 2024
@carlwilson carlwilson self-assigned this Sep 25, 2024
Copy link
Collaborator

@dockmd dockmd left a comment

Choose a reason for hiding this comment

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

I agree with the UUID changes, but why can't the path be of type Path? I'm also changing FileEntry in #74 and Path looks fine, but maybe I missed something.

@dockmd dockmd self-requested a review October 2, 2024 07:29
@carlwilson carlwilson merged commit 8a7ba8f into integration Oct 2, 2024
4 checks passed
@carlwilson
Copy link
Member Author

carlwilson commented Oct 2, 2024

I agree with the UUID changes, but why can't the path be of type Path? I'm also changing FileEntry in #74 and Path looks fine, but maybe I missed something.

because path isn't a standard JSON schema type/format pattern: https://github.com/DILCISBoard/eark-json-schema/actions/runs/10737004058/job/29777577159

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants