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 more form constraints #81

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

Conversation

ischaojie
Copy link
Contributor

@ischaojie ischaojie commented Dec 8, 2023

fixes #28

Copy link

codecov bot commented Dec 8, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.72%. Comparing base (4605e6d) to head (d74e65d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #81      +/-   ##
==========================================
+ Coverage   95.68%   95.72%   +0.04%     
==========================================
  Files          14       14              
  Lines         950      959       +9     
==========================================
+ Hits          909      918       +9     
  Misses         41       41              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ischaojie ischaojie marked this pull request as ready for review December 9, 2023 05:25
Copy link
Member

@samuelcolvin samuelcolvin left a comment

Choose a reason for hiding this comment

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

looking good.

This needs to be rebased to main, and add tests for common cases.

demo/forms.py Outdated Show resolved Hide resolved
demo/forms.py Outdated Show resolved Hide resolved
src/python-fastui/fastui/json_schema.py Show resolved Hide resolved
@ischaojie
Copy link
Contributor Author

Please review again. I'm not familiar with the json-schema part, feel free to request changes on it :)

Copy link
Member

@samuelcolvin samuelcolvin left a comment

Choose a reason for hiding this comment

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

looking good, but some more to do I think.

src/python-fastui/tests/test_forms.py Show resolved Hide resolved
src/python-fastui/fastui/json_schema.py Outdated Show resolved Hide resolved
src/python-fastui/fastui/json_schema.py Show resolved Hide resolved
Copy link
Member

@samuelcolvin samuelcolvin left a comment

Choose a reason for hiding this comment

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

Great, LGTM.

Just conflicts to solve.

@ischaojie
Copy link
Contributor Author

Great, LGTM.

Just conflicts to solve.

Done.

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.

More form constraints
2 participants