Skip to content

Commit

Permalink
docs(changeset): guzzle6 support (#685)
Browse files Browse the repository at this point in the history
* docs(changeset): guzzle6 support

* copy php integration tests

* Add tests + change port numbers + set guzzle6 feature flag

* yarn build

* run tests

* remove test that depends on token
  • Loading branch information
eddiechayes authored Apr 29, 2024
1 parent edf7edd commit 953129f
Show file tree
Hide file tree
Showing 689 changed files with 251,901 additions and 311 deletions.
6 changes: 6 additions & 0 deletions generator/konfig-dash/.changeset/tiny-cups-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'konfig-openapi-spec': patch
'konfig-lib': patch
---

guzzle6 support
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,7 @@ async function queuePhpGeneration({
clientState: generatorConfig.clientState,
clientStateWithExamples: generatorConfig.clientStateWithExamples,
supportPhp7: generatorConfig.supportPhp7,
guzzle6: generatorConfig.guzzle6,
},
packageName: generatorConfig.packageName,
artifactVersion: generatorConfig.version,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1519,6 +1519,10 @@
"type": "boolean",
"default": false
},
"guzzle6": {
"type": "boolean",
"default": false
},
"packagistUsername": {
"type": "string",
"default": "konfig",
Expand Down Expand Up @@ -2616,6 +2620,9 @@
"supportPhp7": {
"$ref": "#/definitions/konfigYaml/properties/generators/properties/php/properties/supportPhp7"
},
"guzzle6": {
"$ref": "#/definitions/konfigYaml/properties/generators/properties/php/properties/guzzle6"
},
"packagistUsername": {
"$ref": "#/definitions/konfigYaml/properties/generators/properties/php/properties/packagistUsername"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const additionalProperties = z
clientStateIsOptional: z.boolean().optional(),
modelPackage: z.string().optional(),
supportPhp7: z.boolean().optional(),
guzzle6: z.boolean().optional(),
packagistUsername: z.string().optional(),
apiKeyAlias: z.record(z.string(), z.string()).optional(),
apiDocumentationAuthenticationPartial: z.string().optional(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ export const phpConfig = z.object({
clientState,
clientStateWithExamples,
supportPhp7: z.boolean().optional().default(false),
guzzle6: z.boolean().optional().default(false),
packagistUsername: z
.string()
.optional()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1429,6 +1429,9 @@ components:
supportPhp7:
type: boolean
default: false
guzzle6:
type: boolean
default: false
packagistUsername:
type: string
default: konfig
Expand Down Expand Up @@ -3228,6 +3231,9 @@ components:
supportPhp7:
type: boolean
default: false
guzzle6:
type: boolean
default: false
packagistUsername:
type: string
default: konfig
Expand Down
7 changes: 7 additions & 0 deletions generator/konfig-docs/static/konfig-yaml.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1519,6 +1519,10 @@
"type": "boolean",
"default": false
},
"guzzle6": {
"type": "boolean",
"default": false
},
"packagistUsername": {
"type": "string",
"default": "konfig",
Expand Down Expand Up @@ -2616,6 +2620,9 @@
"supportPhp7": {
"$ref": "#/definitions/konfigYaml/properties/generators/properties/php/properties/supportPhp7"
},
"guzzle6": {
"$ref": "#/definitions/konfigYaml/properties/generators/properties/php/properties/guzzle6"
},
"packagistUsername": {
"$ref": "#/definitions/konfigYaml/properties/generators/properties/php/properties/packagistUsername"
},
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ default Map<String, Object> transformAdditionalPropertiesToMap(AdditionalPropert
additionalProperties.getRemoveDefaultConfigurationParameters());
putIfPresent(map, "apiPackage", additionalProperties.getApiPackage());
putIfPresent(map, "omitSecurityRequirementsFromTopLevelClient",
additionalProperties.getomitSecurityRequirementsFromTopLevelClient());
additionalProperties.getOmitSecurityRequirementsFromTopLevelClient());
if (additionalProperties.getReadmeOperation() != null)
putIfPresent(map, "readmeOperationId", additionalProperties.getReadmeOperation().getOperationId());
putIfPresent(map, "useDescriptionInOperationTableDocumentation",
Expand Down Expand Up @@ -314,6 +314,7 @@ default Map<String, Object> transformAdditionalPropertiesToMap(AdditionalPropert
putIfPresent(map, "pubRepository", additionalProperties.getPubRepository());
putIfPresent(map, "pubVersion", additionalProperties.getPubVersion());
putIfPresent(map, "supportPhp7", additionalProperties.getSupportPhp7());
putIfPresent(map, "guzzle6", additionalProperties.getGuzzle6());
putIfPresent(map, "projectName", additionalProperties.getProjectName());
putIfPresent(map, "dependencies", additionalProperties.getDependencies());
putIfPresent(map, "disallowAdditionalPropertiesIfNotPresent",
Expand Down
Loading

0 comments on commit 953129f

Please sign in to comment.