* 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>
* chore: use openapi-core to bundle definition instead of json-schema-ref-parser
* chore: update: root and demo webpack configs
* chore: refactor loadAndBundleSpec
* chore: update vesions: openapi-core, redoc
* chore: rolled back webpack.config(s) to previous version
* chore: changed the way of creating core Config for bundling definition
* fix: disable eslint react/display-name
* fix: update nodejs version to 12 in travis config
* chore: optimize verification: browser or server
* chore: add fetch only for browser
* Update src/utils/loadAndBundleSpec.ts
* chore: isBrowser verification improvment
Co-authored-by: Roman Hotsiy <gotsijroman@gmail.com>