swagger-api / swagger-api/swagger.io-docs

Wrong indentation in 'Inheritance and Polymorphism' example

Open
#343 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Astro
Stars
1.6k
Forks
407
Avg merge
2m
Merged PRs (30d)
2

Description

The example under the 'Model Composition' section is 'Inheritance and Polymorphism' has the wrong indentation on this page:
https://swagger.io/docs/specification/data-models/inheritance-and-polymorphism/

This can be confusing since there is no verbal explanation at what level 'allOf' should be included.

This is what we see:
Screenshot 2024-02-16 at 10 54 31

This is what it should look like:
Screenshot 2024-02-16 at 10 55 48

Hope this is of help!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the linked Inheritance and Polymorphism page and inspect the example under the Model Composition section. Compare its indentation with the expected screenshot, correct the example so the allOf level is clear, and verify the rendered documentation matches the requested layout.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.