OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
If a request builder builds a GET URL with query parameters, these parameters get JSON Encoded. This also happens with Boolean values. For example, if I have a property called includeRead=false, it's not added to the URL as ?includeRead=false, but as ?includeRead=ZmFsc2U%3D. This of course makes no sense to the middleware.
openapi-generator version
openapi-generator-cli 5.4.0
commit : 4a36be7
built : 2022-01-31T05:31:36Z
Description
If a request builder builds a GET URL with query parameters, these parameters get JSON Encoded. This also happens with Boolean values. For example, if I have a property called
includeRead=false
, it's not added to the URL as?includeRead=false
, but as?includeRead=ZmFsc2U%3D
. This of course makes no sense to the middleware.openapi-generator version
OpenAPI declaration file content or url
Generation Details
Run the most basic generate command:
If you now look at
OpenAPIClient/Classes/OpenAPIs/APIs/MessagesAPI.swift
you'll see:This line creates a JSON string representation of the boolean value.