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

Fix ApiDoc insert update failure #276

Merged
merged 2 commits into from
Apr 14, 2023
Merged

Fix ApiDoc insert update failure #276

merged 2 commits into from
Apr 14, 2023

Conversation

crudboy
Copy link
Contributor

@crudboy crudboy commented Apr 14, 2023

ApiDoc insert update Form field state save exception
image

@li-keguo
Copy link
Member

Maybe you should fix the back end in sync

https://github.com/apache/shenyu/blob/master/shenyu-admin/src/main/java/org/apache/shenyu/admin/model/dto/ApiDTO.java

eg:

    @NotNull
    @Min(0)
    @Max(3)
    private Integer state;

Thank you for your contribution~

li-keguo
li-keguo previously approved these changes Apr 14, 2023
placeholder={getIntlContent("SHENYU.DOCUMENT.APIDOC.STATE")}
/>
<Radio.Group buttonStyle="solid">
{Object.values(STATE_TYPE).map((e, i) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

STATE_TYPE.map((e, i) => ...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I refer to the traversal method of other arrays in this file, so I am consistent with him

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed the way the array is traversed

@li-keguo li-keguo added the type: bug Something isn't working label Apr 14, 2023
@crudboy
Copy link
Contributor Author

crudboy commented Apr 14, 2023

I try fix the back end in sync

@li-keguo li-keguo merged commit 25ea3dc into apache:master Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants