Skip to content

Simplify object schema definition #38

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

Closed
SilverRainZ opened this issue Aug 21, 2024 · 1 comment
Closed

Simplify object schema definition #38

SilverRainZ opened this issue Aug 21, 2024 · 1 comment

Comments

@SilverRainZ
Copy link
Member

The current syntax is quite complex:

version_schema = Schema('version',
                        name=F(unique=True, referenceable=True, required=True, form=F.Form.LINES),
                        attrs={'date': F(referenceable=True)},
                        content=F(form=F.Form.LINES),
                        description_template=open('_templates/version.rst', 'r').read(),
                        reference_template='🏷️{{ title }}',
                        missing_reference_template='🏷️{{ title }}',
                        ambiguous_reference_template='🏷️{{ title }}')
@SilverRainZ
Copy link
Member Author

Dup with #16

@SilverRainZ SilverRainZ closed this as not planned Won't fix, can't repro, duplicate, stale Aug 21, 2024
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

No branches or pull requests

1 participant