* feat(#1251): Add file selector to demo application
This PR should fix the request to add a file selector to the demo application see issue #1251 .
* refactor(): Remove function, use it implicit
* refactor(): Add interface props
* refactor(): Update method usage
use regular func as a Component declaration and the arrow func as a handler inside the component.
* fix: No maxLength label is displayed for arrays of items #1701
* Revert "fix: No maxLength label is displayed for arrays of items #1701"
This reverts commit 543ecc4d39.
* fix: No maxLength label is displayed for arrays of items #1701
* change array items display
* fix alignment
* remove theme font from labels
* update snapshot
Co-authored-by: Oprysk <vyacheslav@redocly.com>
* fix: attachHeadingsDescriptions match headings incorrectly
* fix: match new line instead of `$` in MarkdownRenderer.attachHeadingsDescriptions
Co-authored-by: TJT <tjt@maimemo.com>
* operations: Add support for sortOperationsAlphabetically
Already documented but is currently `NO-OP` and not implemented
`sortOperationsAlphabetically`.
Allows sorting operations in sidebar menu according to their `name`
configured which is by default `summary` from Swaggerspec
TLDR:
Following commit adds support for `sortOperationsAlphabetically` already
documented but not implemented here: https://redoc.ly/docs/api-reference-docs/guides/migration-guide-2-0/#automated-sorting
Signed-off-by: flouthoc <flouthoc.git@gmail.com>
* feat: move sort by prop to utils functions
* feat: add ability to sort tags
Co-authored-by: Oprysk <vyacheslav@redocly.com>
* Use an option usePathInSidebar
If this option is enabled, it displays a path in the sidebar instead of
summary.
Usage:
```js
<RedocStandalone
spec={props.spec}
options={{
scrollYOffset:'.navbar',
nativeScrollbars: true,
usePathInSidebar:true
}}
```
* Rename usePathInSidebar to sideNavStyle
* Rename sidebarName to sidebarLabel
* Use ternary operator
* Use enums instead of raw string
* fix: exclusiveMin/Max shows incorect range
* cover all number range cases & add unit tests
* add more tests
* fix maximum value
* simplify humanizeNumberRange function
* simplify exclusive checks
* Update src/utils/openapi.ts
Co-authored-by: Roman Hotsiy <gotsijroman@gmail.com>
* update test coverage
* linting
* revert weird prettier changes
* add md files to prettier ignore
Co-authored-by: Roman Hotsiy <gotsijroman@gmail.com>