Repository navigation
feat: the xml object, how a schema is written as XML - #34
Merged
Merged
Conversation
A schema can now say how it is written as XML: the name of its element or attribute, its namespace and prefix, whether it is an attribute, and whether a list is wrapped in an element of its own. Until now a document with one failed to load, as an unknown member. A namespace must be an absolute URI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019QCb1AfnATvpBQCH3PrX7Y
This was referenced Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds OpenAPI's XML object as
Schema.XML. It records how a schema is written as XML:name;namespaceandprefix;attribute;wrappedin an element of its own.Until now, a document with an
xmlmember failed to load, because unknown members are rejected.Validaterequires the namespace to be an absolute URI.This is the first step toward XML responses in the go-api-libs pipeline, for go-api-libs/ibkr-flex: IBKR's Flex Web Service answers in
text/xml. openapi-enrich will infer these schemas from recorded XML bodies, and openapi-codegen will generatexml-tagged structs from them.TestXMLround-trips a schema with a named, namespaced and prefixed element, an attribute and a wrapped list.TestXML_RelativeNamespacechecks that a relative namespace is rejected.make readypasses.Generated by Claude Code