-
I'd like to add a schema version badge for our OFMX XML schema version, however, not based on the repo but rather the authoritative schema URI. The current schema location is http://schema.openflightmaps.org/version.txt It returns Is it possible somehow to create a version or custom badge which queries a URL and then uses the returned content in the badge? Something along the lines of:
To be rendered as: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
We've got 3 badges that can take an arbitrary url and extract a value from the content. We've got 2 that can extract a value from a JSON or yaml document using a jsonpath selector and one that can extract a value from an XML document using an xpath selector (although I'm not sure if xpath will work on a xsd schema). |
Beta Was this translation helpful? Give feedback.
We've got 3 badges that can take an arbitrary url and extract a value from the content. We've got 2 that can extract a value from a JSON or yaml document using a jsonpath selector and one that can extract a value from an XML document using an xpath selector (although I'm not sure if xpath will work on a xsd schema).
We don't plan to add any additional formats, but if you could publish your version file in one of those formats you could use one of those. There is a builder for these on the front page https://shields.io/#dynamic-badge