[BUG] client_side_validation comment is backwards
Created by: mdavis-xyz
Bug Report Checklist
-
Have you provided a full/minimal spec to reproduce the issue? -
Have you validated the input using an OpenAPI validator (example)? -
What's the version of OpenAPI Generator used? -
Have you search for related issues/PRs? here -
What's the actual output vs expected output? -
[Optional] Bounty to sponsor the fix (example)
Description
In the configuration.py
file after generating a python client, it says:
# Disable client side validation
self.client_side_validation = True
This makes it seem like client side validation is disabled by default. But it's not.
The comment should be # set to False to disable client side validation
, or just # Enable client side validation
openapi-generator version
openapi-generator-cli 5.0.0-SNAPSHOT
commit : 068ad02
built : 2020-07-02T17:04:18Z
source : https://github.com/openapitools/openapi-generator
docs : https://openapi-generator.tech/
Command line used for generation
docker run --rm \
-v $PWD:/local \
openapitools/openapi-generator-cli \
generate \
-i /local/repo/direct-plant-control.yaml \
-g python \
-o /local/out/python \
--package-name dispatch
Steps to reproduce
Related issues/PRs
@jonashaag added a comment to the PR by @wing328 that introduced this issue here
Suggest a fix
The comment should be # set to False to disable client side validation
, or just # Enable client side validation