Skip to content

Instantly share code, notes, and snippets.

@mykeels
Created November 7, 2024 01:13
Show Gist options
  • Save mykeels/af4bc07946f0961a775fe84bbd9aa806 to your computer and use it in GitHub Desktop.
Save mykeels/af4bc07946f0961a775fe84bbd9aa806 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
<svg width="800" height="400" xmlns="http://www.w3.org/2000/svg">
<!-- Background -->
<rect width="100%" height="100%" fill="lightblue" />
<!-- Title Text -->
<text x="50%" y="20%" dominant-baseline="middle" text-anchor="middle" font-family="Arial" font-size="36" fill="navy">
Enums Mappings in OpenAPI
</text>
<!-- Visual Elements -->
<!-- Example of arrows representing enums -->
<polygon points="350,150 400,100 450,150" fill="navy" />
<polygon points="350,250 400,300 450,250" fill="navy" />
<polygon points="300,200 250,250 300,300" fill="navy" />
<polygon points="500,200 550,250 500,300" fill="navy" />
<!-- API Symbol (simple network node) -->
<!-- Subtle Code Overlay -->
<text x="50%" y="80%" dominant-baseline="middle" text-anchor="middle" font-family="Courier New" font-size="14" fill="rgba(0, 0, 128, 0.5)">
{"enum": [0, 1, 2, 3], "x-enum-varnames": ["Up", "Down", "Left", "Right"]}
</text>
</svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment