We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, my goal is to define a data class with fastapi-xml that a request body can look like this:
<?xml version="1.0" encoding="UTF-8"?> <PromptDefinitionEmbeddings> <model>abc</model> <prompt>What is your name?</prompt> <embeddings> <embeddingData>embedding1</embeddingData> <embeddingData>embedding2</embeddingData> </embeddings> </PromptDefinitionEmbeddings>
My current dataClass looks like this:
@dataclass class PromptDefinition: model: str = field( metadata={ "examples": ["mistral-7b-instruct-v0.2.Q3_K_S.gguf"], "name": "model", "type": "Element" } ) prompt: str = field( metadata={ "examples": ["What is the Imixs-Workflow engine?"], "name": "prompt", "type": "Element" } )
But I did not find out how to define a tag list in fastapi-xml. Can someone help me?
The text was updated successfully, but these errors were encountered:
Hi @rsoika, xsdata has a pseudo wrapper Element. There is a related issue: tefra/xsdata#710 Likewise, this is the doc reference: https://xsdata.readthedocs.io/en/latest/models/fields/#wrapper
I hope this adresses your issue.
Sorry, something went wrong.
No branches or pull requests
Hi,
my goal is to define a data class with fastapi-xml that a request body can look like this:
My current dataClass looks like this:
But I did not find out how to define a tag list in fastapi-xml. Can someone help me?
The text was updated successfully, but these errors were encountered: