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

Add support for defining schemas. #28

Merged
merged 1 commit into from
Jun 1, 2021
Merged

Conversation

paddycarver
Copy link
Contributor

This is another attempt at allowing providers to define schemas. It's
born out of the ashes of #11, which gradually grew from baking an apple
pie from scratch into creating the universe. Or however that saying
goes.

This is intentionally limited in scope to just setting up the types for
declaring schemas and the types required by that, namely our attribute
interfaces. Unlike #11, it makes no attempt to use these types for
anything or prove they're the right types; the work done with #11 gives
me confidence that they're a worthwhile direction to pursue.

I'm submitting this as a separate PR to make review easier and to
optimize for mergeability, letting us get some shared types established
while still taking an appropriate amount of time to review the
reflection code that is in our future.

Fixes #12.

@paddycarver paddycarver added the enhancement New feature or request label May 31, 2021
@paddycarver paddycarver added this to the v0.1.0 milestone May 31, 2021
@paddycarver paddycarver requested review from bflad and kmoe May 31, 2021 08:11
@paddycarver
Copy link
Contributor Author

I believe this is ready for review and merge, and it supersedes #11, which has grown in size and scope to a point where reviewing it properly does not seem feasible.

This is another attempt at allowing providers to define schemas. It's
born out of the ashes of #11, which gradually grew from baking an apple
pie from scratch into creating the universe. Or however that saying
goes.

This is intentionally limited in scope to just setting up the types for
declaring schemas and the types required by that, namely our attribute
interfaces. Unlike #11, it makes no attempt to use these types for
anything or prove they're the right types; the work done with #11 gives
me confidence that they're a worthwhile direction to pursue.

I'm submitting this as a separate PR to make review easier and to
optimize for mergeability, letting us get some shared types established
while still taking an appropriate amount of time to review the
reflection code that is in our future.
paddycarver added a commit that referenced this pull request May 31, 2021
This adds to #28 by creating implementations of the attr.Type interface
for our primitive types: bools, numbers, and strings.
@paddycarver paddycarver mentioned this pull request May 31, 2021
paddycarver added a commit that referenced this pull request May 31, 2021
This adds to #28 by creating implementations of the attr.Type interface
for our primitive types: bools, numbers, and strings.
Copy link
Member

@kmoe kmoe left a comment

Choose a reason for hiding this comment

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

LGTM. Excellent documentation.

@paddycarver paddycarver merged commit 7610f58 into main Jun 1, 2021
@paddycarver paddycarver deleted the paddy_schema_minimal branch June 1, 2021 16:32
paddycarver added a commit that referenced this pull request Jun 1, 2021
This adds to #28 by creating implementations of the attr.Type interface
for our primitive types: bools, numbers, and strings.
paddycarver added a commit that referenced this pull request Jun 1, 2021
This adds to #28 by creating implementations of the attr.Type interface
for our primitive types: bools, numbers, and strings.
paddycarver added a commit that referenced this pull request Jun 1, 2021
This adds to #28 by creating implementations of the attr.Type interface
for our primitive types: bools, numbers, and strings.
@github-actions
Copy link

github-actions bot commented Jul 2, 2021

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Define Schema type
2 participants