Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sortOperationsAlphabetically config, html show error #2518

Open
hujingnb opened this issue Apr 22, 2024 · 0 comments
Open

add sortOperationsAlphabetically config, html show error #2518

hujingnb opened this issue Apr 22, 2024 · 0 comments

Comments

@hujingnb
Copy link

sorry first, my english is not good

Describe the bug

i add sortOperationsAlphabetically is true in redocly.yaml then build html file.

but summary field and description field show order error.

use this code can reappear

Expected behavior

show content same as yaml file

Minimal reproducible OpenAPI snippet(if possible)

test.yaml file content:

info:
    title: Api
    version: "0.1"
paths:
    /internal/clear_cache:
        post:
            description: 清空缓存
            operationId: 清空缓存
            responses:
                "200":
                    $ref: '#/responses/NoDataResponseSwagger'
            summary: 清空缓存
            tags:
                - internal
    /internal/unbind_account_all:
        post:
            description: 将账号下的所有绑定关系解绑
            operationId: UnbindAccountAllReqSwagger
            responses:
                "400":
                    $ref: '#/responses/NoDataResponseSwagger'
            summary: 解绑账号所有隐私号
            tags:
                - internal
responses:
    NoDataResponseSwagger:
        description: ""
        schema:
            type: object
schemes:
    - https
swagger: "2.0"

redocly.yaml file content:

extends:
  - recommended

apis:
  test:
    root: test.yaml

theme:
  openapi:
    hideDownloadButton: true
    schemaExpansionLevel: 3
    sortPropsAlphabetically: true
    sortTagsAlphabetically: true
    sortOperationsAlphabetically: true

run command:

docker run --rm -v `pwd`:/app -w /app redocly/cli build-docs -o test.html --disableGoogleFont=true test

Screenshots

image

this file has 2 problem:

  1. show message is error
  2. show response code is error

I delete sortOperationsAlphabetically field in redocly.yaml, success

excuse my bad english, thinks.

Additional context

none

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant