-
Notifications
You must be signed in to change notification settings - Fork 7
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
XML for virtual organization #17
Comments
Yes it's my long-term goal to use an org's definition to provision the virtual salesforce org, but it's a huge task and we haven't started on it yet. You could use the metadata api to download the source for your org, or use |
I suggest start with a simpler format - json. Do you have any ideas yet? I think straightforward checks would be difficult to support (I mean, do JSON, xml analysis every time). I think in this situation code generation is appropriate. datamodel-code-generator (generate pydantic model for validation) provides such functionality. For example we could analyze JSON, XML - prepare json or yaml for Did some research. |
Oh sure we'd convert the XML to JSON at runtime, but what I mean is Salesforce can give you an org definition in xml format using the metadata or soap api. From that xml, we could read the schema and use that to build a virtual salesforce org that more closely resembles the org in question. It'd be cool if we could use the openapi documentation, but I don't think it would work for our needs as you said. I think using sfdx or the metadata api already wrapped in I hadn't thought of using a code generation tool, but I'm definitely interested in that idea! Here's a trailhead for |
I found an article that talks about future plans. Did I understand correctly that there are plans to use XML as object validation? If so, that's a great idea. I would like to analyze it and maybe suggest something.
@brno32 How can you get XML for your organization? I searched and couldn't find it.
kicksaw article
The text was updated successfully, but these errors were encountered: