Skip to content

Autogenerate schema types to avoid copying them from entitycore #78

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eleftherioszisis
Copy link
Collaborator

@eleftherioszisis eleftherioszisis commented Jun 19, 2025

Server schemas are materialized from server's open api schema and stored under entitysdk/_server_schemas.py.

StrEnum type are then indirectly exported into entitysdk.types so that we don't need to copy them each time they are added/updated in entitycore.

@eleftherioszisis eleftherioszisis force-pushed the autogenerate-schema-types branch from 1c49022 to ff4066f Compare June 19, 2025 13:20
Copy link

codecov bot commented Jun 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Flag Coverage Δ
pytest 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/entitysdk/_server_schemas.py 100.00% <100.00%> (ø)
src/entitysdk/client.py 100.00% <100.00%> (ø)
src/entitysdk/core.py 100.00% <100.00%> (ø)
src/entitysdk/downloaders/emodel.py 100.00% <100.00%> (ø)
src/entitysdk/downloaders/ion_channel_model.py 100.00% <100.00%> (ø)
src/entitysdk/downloaders/morphology.py 100.00% <100.00%> (ø)
src/entitysdk/models/activity.py 100.00% <100.00%> (ø)
src/entitysdk/models/asset.py 100.00% <100.00%> (ø)
src/entitysdk/models/entity.py 100.00% <100.00%> (ø)
src/entitysdk/models/subject.py 100.00% <100.00%> (ø)
... and 1 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@eleftherioszisis eleftherioszisis self-assigned this Jun 24, 2025
@eleftherioszisis eleftherioszisis force-pushed the autogenerate-schema-types branch from 562a076 to 7bf981a Compare June 27, 2025 16:14
@eleftherioszisis eleftherioszisis force-pushed the autogenerate-schema-types branch from 7bf981a to d6d6612 Compare June 27, 2025 17:11
@eleftherioszisis eleftherioszisis marked this pull request as ready for review June 27, 2025 17:13
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.

1 participant