Skip to content

Commit

Permalink
fix(cli): conjure importer brings in endpoint level descriptions (#5034)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsinghvi authored Oct 29, 2024
1 parent f25e5ea commit 654aa61
Show file tree
Hide file tree
Showing 34 changed files with 476 additions and 25 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ export class ConjureImporter extends APIDefinitionImporter<ConjureImporter.Args>
response: endpointDeclaration.returns === "binary" ? "file" : endpointDeclaration.returns
};

if (endpointDeclaration.docs != null) {
endpoint.docs = endpointDeclaration.docs;
}

const pathParameters: Record<string, RawSchemas.HttpPathParameterSchema> = {};
if (endpointDeclaration.args != null) {
for (const pathParameter of endpointLocator.pathParameters) {
Expand Down
7 changes: 7 additions & 0 deletions packages/cli/cli/versions.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
- changelogEntry:
- summary: |
The Conjure importer now brings in endpoint level descriptions.
type: feat
irVersion: 53
version: 0.45.0-rc27

- changelogEntry:
- summary: |
`fern check` handles validating unions that contain base properties.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,8 @@ function convertObject({
file: fileContainingType
});
if (originalTypeDeclaration == null) {
throw new Error("Could not find original type declaration for property: " + wireKey);
// dont fail hard because it may be from `base-properties`
return exampleProperties;
}

const valueExample = convertTypeReferenceExample({
Expand Down
3 changes: 3 additions & 0 deletions seed/csharp-model/mixed-case/.mock/definition/service.yml

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

3 changes: 3 additions & 0 deletions seed/csharp-sdk/mixed-case/.mock/definition/service.yml

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

3 changes: 3 additions & 0 deletions seed/fastapi/mixed-case/.mock/definition/service.yml

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

3 changes: 3 additions & 0 deletions seed/go-fiber/mixed-case/.mock/definition/service.yml

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

3 changes: 3 additions & 0 deletions seed/go-model/mixed-case/.mock/definition/service.yml

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

3 changes: 3 additions & 0 deletions seed/go-sdk/mixed-case/.mock/definition/service.yml

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

3 changes: 3 additions & 0 deletions seed/java-model/mixed-case/.mock/definition/service.yml

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

3 changes: 3 additions & 0 deletions seed/java-sdk/mixed-case/.mock/definition/service.yml

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

3 changes: 3 additions & 0 deletions seed/java-spring/mixed-case/.mock/definition/service.yml

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

3 changes: 3 additions & 0 deletions seed/openapi/mixed-case/.mock/definition/service.yml

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

2 changes: 2 additions & 0 deletions seed/openapi/mixed-case/openapi.yml

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

3 changes: 3 additions & 0 deletions seed/php-model/mixed-case/.mock/definition/service.yml

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

3 changes: 3 additions & 0 deletions seed/php-sdk/mixed-case/.mock/definition/service.yml

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

3 changes: 3 additions & 0 deletions seed/postman/mixed-case/.mock/definition/service.yml

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

4 changes: 2 additions & 2 deletions seed/postman/mixed-case/collection.json

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

Loading

0 comments on commit 654aa61

Please sign in to comment.