Skip to content

Is there good to way to omit readonly key #2581

@zhsj

Description

@zhsj

Problem statement

Since go-swagger can validate readonly key, API calls with readonly key will fail. However I want to make the frontend life much easier. So I want the server to just omit readonly key when receive POST/PUT request, instead of modify our swagger definition to drop the readonly key.

Is there easy way to achieve this?

Swagger specification

  1. 0

Steps to reproduce

Environment

swagger version: 0.26.0
go version: 1.16
OS: linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions