Git Product home page Git Product logo

Comments (5)

christianhelle avatar christianhelle commented on August 22, 2024 1

@all-contributors please add @waylonmtz for bugs

from refitter.

waylonmtz avatar waylonmtz commented on August 22, 2024

I even tried to set the schema.default to null but this still did not cause refitter to generate a method signature with default nulls.

re: IsPrimary

from refitter.

christianhelle avatar christianhelle commented on August 22, 2024

@waylonmtz Thanks for taking the time to report this.

I'll see what I can do. I'm AFK most of this weekend, so I'll probably look into this on Monday.

Do you mind sharing the full OpenAPI doc? It would be more convenient for me to test things out

from refitter.

christianhelle avatar christianhelle commented on August 22, 2024

I re-formatted the spec you provided and it seems to have enough information for to troubleshoot the problem in detail

    "/v1/accounts/{accountId}/addresses": {
        "get": {
            "tags": [
                "AccountAddresses"
            ],
            "operationId": "AccountAddresses_GetAccountAddresses",
            "parameters": [
                {
                    "name": "accountId",
                    "in": "path",
                    "required": true,
                    "schema": {
                        "type": "integer",
                        "format": "int64"
                    },
                    "x-position": 1
                },
                {
                    "name": "IsPrimary",
                    "in": "query",
                    "schema": {
                        "type": "boolean",
                        "nullable": true,
                        "default": null
                    }
                },
                {
                    "name": "IsActive",
                    "in": "query",
                    "schema": {
                        "type": "boolean",
                        "nullable": true
                    }
                },
                {
                    "name": "IncludeSpouse",
                    "in": "query",
                    "schema": {
                        "type": "boolean"
                    }
                },
                {
                    "name": "SortBy",
                    "in": "query",
                    "style": "form",
                    "explode": true,
                    "schema": {
                        "type": "array",
                        "nullable": true,
                        "xml": {
                            "name": "ArrayOfstring",
                            "wrapped": true
                        },
                        "items": {
                            "type": "string",
                            "xml": {
                                "name": "string"
                            }
                        }
                    }
                },
                {
                    "name": "Search",
                    "in": "query",
                    "schema": {
                        "type": "string",
                        "nullable": true
                    }
                },
                {
                    "name": "PageNumber",
                    "in": "query",
                    "schema": {
                        "type": "integer",
                        "format": "int32"
                    }
                },
                {
                    "name": "PageSize",
                    "in": "query",
                    "schema": {
                        "type": "integer",
                        "format": "int32"
                    }
                },
                {
                    "name": "ExportFileName",
                    "in": "query",
                    "schema": {
                        "type": "string",
                        "nullable": true
                    }
                }
            ],
            "responses": {
                "200": {
                    "description": "",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PagedApiResponseOfIEnumerableOfAccountAddressSummary"
                            }
                        }
                    }
                }
            }
        },
        "post": {
            "tags": [
                "AccountAddresses"
            ],
            "operationId": "AccountAddresses_CreateAccountAddress",
            "parameters": [
                {
                    "name": "accountId",
                    "in": "path",
                    "required": true,
                    "schema": {
                        "type": "integer",
                        "format": "int64"
                    },
                    "x-position": 1
                }
            ],
            "requestBody": {
                "x-name": "command",
                "content": {
                    "application/json": {
                        "schema": {
                            "nullable": true,
                            "$ref": "#/components/schemas/CreateAccountAddress"
                        }
                    }
                },
                "x-position": 2
            },
            "responses": {
                "201": {
                    "description": "",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/AccountAddressSummary"
                            }
                        }
                    }
                }
            }
        }
    }

from refitter.

allcontributors avatar allcontributors commented on August 22, 2024

@christianhelle

I've put up a pull request to add @waylonmtz! 🎉

from refitter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.