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

[14.0][spec_driven_model][l10n_br_nfe] multi-schemas compatibility - round 1 #3424

Closed
wants to merge 4 commits into from

Conversation

rvalyi
Copy link
Member

@rvalyi rvalyi commented Oct 7, 2024

This PR is intended to make the spec_driven_model StackedModel behavior work well when using several schemas (or even versions) at the same time, for instance NFe with CTe and MDFe...

While working in this I found issues that I fixed in separated PR's:

EDIT: In the last commits, I replaced the references to generateDS by xsdata in the spec_driven_model methods and README.

@rvalyi rvalyi marked this pull request as draft October 7, 2024 19:33
@rvalyi rvalyi force-pushed the 14.0-multi-schemas2-wip branch 2 times, most recently from 76fcc85 to c0b0ade Compare October 8, 2024 03:04
@rvalyi rvalyi force-pushed the 14.0-multi-schemas2-wip branch 4 times, most recently from f21fccc to 1518dc9 Compare October 9, 2024 03:59
@rvalyi rvalyi changed the title [14.0][spec_driven_model][l10n_br_nfe] multi-schemas compatibility - WIP [14.0][spec_driven_model][l10n_br_nfe] multi-schemas compatibility Oct 9, 2024
@rvalyi rvalyi force-pushed the 14.0-multi-schemas2-wip branch 2 times, most recently from 7ce57f3 to 5721979 Compare October 9, 2024 04:16
@rvalyi rvalyi force-pushed the 14.0-multi-schemas2-wip branch 3 times, most recently from d4a0491 to a603f7f Compare October 9, 2024 04:55
@rvalyi rvalyi marked this pull request as ready for review October 9, 2024 04:58
@rvalyi rvalyi force-pushed the 14.0-multi-schemas2-wip branch 3 times, most recently from a8adb36 to 473df5a Compare October 10, 2024 10:24
@rvalyi rvalyi marked this pull request as draft October 10, 2024 12:12
@rvalyi
Copy link
Member Author

rvalyi commented Oct 10, 2024

Os 2 primeiros commits desse PR são meio que a abordagem minimalista e pode ser interessante olhar para entender. Porem eu vi que tinha que refatorar mais coisas e então eu fiz esse outro PR #3431

@rvalyi
Copy link
Member Author

rvalyi commented Oct 10, 2024

deixei essa PR de rascunho aqui para ficar de referencia do primeiro passo do refactor.Porem não ta muito legal usar dict como eu fia aqui como _nfe40_spec_settings porque não é simples herdar o que tem dentro. E faltava botar um scope para varias outras propriedade que tavam por examplo no spec.mixin.nfe.

Eu fiz essas coisas neste novo PR #3431

@rvalyi rvalyi changed the title [14.0][spec_driven_model][l10n_br_nfe] multi-schemas compatibility [14.0][spec_driven_model][l10n_br_nfe] multi-schemas compatibility - round 1 Oct 10, 2024
@rvalyi
Copy link
Member Author

rvalyi commented Oct 12, 2024

fechando esse ja que foi substituido pelo #3431

@rvalyi rvalyi closed this Oct 12, 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

Successfully merging this pull request may close these issues.

1 participant