-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refit Fails on Jira OpenAPI specs #371
Comments
@ZakariaSakab thanks for taking the time to report this Unfortunately, the link returns an HTTP 404 I'll try to find the correct OpenAPI spec myself and see what's going on and what goes wrong. Hopefully, we can find a work-around, and if not, report the problem to Atlassian |
Sorry that was the wrong paste. |
@ZakariaSakab I could get it to work by using the > refitter https://dac-static.atlassian.com/cloud/jira/platform/swagger-v3.v3.json?_v=1.7125.0-0.1305.0 --skip-validation
Refitter v0.9.9.0
Support key: ptbddgt
Length: 2175434 bytes
Output: C:\projects\christianhelle\refitter\test\OpenAPI\v3.0\Output.cs
Duration: 00:00:04.1337748 I think that there is a bug that prevents the actual validation errors from being shown. I'll look into that now |
here are the validation errors that "should" have been displayed by Refitter {
"ValidationResult": {
"Diagnostics": {
"Errors": [
{
"Message": "The path signature '/rest/api/3/field/{}' MUST be unique.",
"Pointer": "#/paths//rest/api/3/field/{id}",
"RuleName": "PathMustBeUnique"
},
{
"Message": "The path signature '/rest/api/3/issuesecurityschemes/{}' MUST be unique.",
"Pointer": "#/paths//rest/api/3/issuesecurityschemes/{schemeId}",
"RuleName": "PathMustBeUnique"
},
{
"Message": "The path signature '/rest/api/3/notificationscheme/{}' MUST be unique.",
"Pointer": "#/paths//rest/api/3/notificationscheme/{notificationSchemeId}",
"RuleName": "PathMustBeUnique"
}
],
"SpecificationVersion": "OpenApi3_0",
"Warnings": [
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1app~1field~1value/post/requestBody/content/application~1json/example/updates/0/issueIds/0",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1app~1field~1value/post/requestBody/content/application~1json/example/updates/0/issueIds/1",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1app~1field~1value/post/requestBody/content/application~1json/example/updates/1/issueIds/0",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1app~1field~1{fieldIdOrKey}~1value/put/requestBody/content/application~1json/example/updates/0/issueIds/0",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1comment~1list/post/requestBody/content/application~1json/example/ids/0",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1comment~1list/post/requestBody/content/application~1json/example/ids/1",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1comment~1list/post/requestBody/content/application~1json/example/ids/2",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1comment~1list/post/requestBody/content/application~1json/example/ids/3",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1dashboard~1bulk~1edit/put/requestBody/content/application~1json/example/entityIds/0",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1dashboard~1bulk~1edit/put/requestBody/content/application~1json/example/entityIds/1",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1field~1{fieldKey}~1option~1{optionId}/put/requestBody/content/application~1json/example/id",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1issue~1properties~1multi/post/requestBody/content/application~1json/example/issues/0/issueID",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1issue~1properties~1multi/post/requestBody/content/application~1json/example/issues/1/issueID",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1issue~1properties~1{propertyKey}/delete/requestBody/content/application~1json/example/entityIds/0",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1issue~1properties~1{propertyKey}/delete/requestBody/content/application~1json/example/entityIds/1",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1issue~1{issueIdOrKey}~1changelog~1list/post/requestBody/content/application~1json/example/changelogIds/0",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1issue~1{issueIdOrKey}~1changelog~1list/post/requestBody/content/application~1json/example/changelogIds/1",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1issue~1{issueIdOrKey}~1worklog/post/requestBody/content/application~1json/example/timeSpentSeconds",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1issue~1{issueIdOrKey}~1worklog~1{id}/put/requestBody/content/application~1json/example/timeSpentSeconds",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1issues~1archive~1export/put/requestBody/content/application~1json/example/archivedDateRange/dateAfter",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1issues~1archive~1export/put/requestBody/content/application~1json/example/archivedDateRange/dateBefore",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1issuetype~1{id}/put/requestBody/content/application~1json/example/avatarId",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1jql~1autocompletedata/post/requestBody/content/application~1json/example/projectIds/0",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1jql~1autocompletedata/post/requestBody/content/application~1json/example/projectIds/1",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1jql~1autocompletedata/post/requestBody/content/application~1json/example/projectIds/2",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1jql~1match/post/requestBody/content/application~1json/example/issueIds/0",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1jql~1match/post/requestBody/content/application~1json/example/issueIds/1",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1jql~1match/post/requestBody/content/application~1json/example/issueIds/2",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1permissions~1check/post/requestBody/content/application~1json/example/projectPermissions/0/issues/0",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1permissions~1check/post/requestBody/content/application~1json/example/projectPermissions/0/issues/1",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1permissions~1check/post/requestBody/content/application~1json/example/projectPermissions/0/issues/2",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1permissions~1check/post/requestBody/content/application~1json/example/projectPermissions/0/issues/3",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1permissions~1check/post/requestBody/content/application~1json/example/projectPermissions/0/issues/4",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1permissions~1check/post/requestBody/content/application~1json/example/projectPermissions/0/projects/0",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1project/post/requestBody/content/application~1json/example/avatarId",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1project/post/requestBody/content/application~1json/example/categoryId",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1project/post/requestBody/content/application~1json/example/issueSecurityScheme",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1project/post/requestBody/content/application~1json/example/notificationScheme",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1project/post/requestBody/content/application~1json/example/permissionScheme",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1project~1{projectIdOrKey}/put/requestBody/content/application~1json/example/avatarId",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1project~1{projectIdOrKey}/put/requestBody/content/application~1json/example/categoryId",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1project~1{projectIdOrKey}/put/requestBody/content/application~1json/example/issueSecurityScheme",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1project~1{projectIdOrKey}/put/requestBody/content/application~1json/example/notificationScheme",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1project~1{projectIdOrKey}/put/requestBody/content/application~1json/example/permissionScheme",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1project~1{projectKeyOrId}~1permissionscheme/put/requestBody/content/application~1json/example/id",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1uiModifications/post/requestBody/content/application~1json/example/contexts/2/viewType",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1version/post/requestBody/content/application~1json/example/projectId",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1version/post/requestBody/content/application~1json/example/releaseDate",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1version~1{id}/put/requestBody/content/application~1json/example/projectId",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1version~1{id}/put/requestBody/content/application~1json/example/releaseDate",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1version~1{id}/put/requestBody/content/application~1json/example/userReleaseDate",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1webhook/delete/requestBody/content/application~1json/example/webhookIds/0",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1webhook/delete/requestBody/content/application~1json/example/webhookIds/1",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1webhook/delete/requestBody/content/application~1json/example/webhookIds/2",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1webhook~1refresh/put/requestBody/content/application~1json/example/webhookIds/0",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1webhook~1refresh/put/requestBody/content/application~1json/example/webhookIds/1",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1webhook~1refresh/put/requestBody/content/application~1json/example/webhookIds/2",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1workflows~1create/post/requestBody/content/application~1json/example/workflows/0/statuses/0/layout/y",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1workflows~1create/post/requestBody/content/application~1json/example/workflows/0/statuses/1/layout/y",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1workflows~1create/post/requestBody/content/application~1json/example/workflows/0/statuses/2/layout/y",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1workflows~1create~1validation/post/requestBody/content/application~1json/example/payload/workflows/0/statuses/0/layout/y",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1workflows~1create~1validation/post/requestBody/content/application~1json/example/payload/workflows/0/statuses/1/layout/y",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1workflows~1create~1validation/post/requestBody/content/application~1json/example/payload/workflows/0/statuses/2/layout/y",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1workflows~1update/post/requestBody/content/application~1json/example/workflows/0/statuses/0/layout/y",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1workflows~1update/post/requestBody/content/application~1json/example/workflows/0/statuses/1/layout/y",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1workflows~1update/post/requestBody/content/application~1json/example/workflows/0/statuses/2/layout/y",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1workflows~1update/post/requestBody/content/application~1json/example/workflows/0/version/versionNumber",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1workflows~1update~1validation/post/requestBody/content/application~1json/example/payload/workflows/0/statuses/0/layout/y",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1workflows~1update~1validation/post/requestBody/content/application~1json/example/payload/workflows/0/statuses/1/layout/y",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1workflows~1update~1validation/post/requestBody/content/application~1json/example/payload/workflows/0/statuses/2/layout/y",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1workflows~1update~1validation/post/requestBody/content/application~1json/example/payload/workflows/0/version/versionNumber",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1workflowscheme~1update/post/requestBody/content/application~1json/example/version/versionNumber",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1worklog~1list/post/requestBody/content/application~1json/example/ids/0",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1worklog~1list/post/requestBody/content/application~1json/example/ids/1",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1worklog~1list/post/requestBody/content/application~1json/example/ids/2",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1api~13~1worklog~1list/post/requestBody/content/application~1json/example/ids/3",
"RuleName": "MediaTypeMismatchedDataType"
},
{
"Message": "Data and type mismatch found.",
"Pointer": "#/paths/~1rest~1atlassian-connect~11~1migration~1field/put/requestBody/content/application~1json/example/updateValueList/5/number",
"RuleName": "MediaTypeMismatchedDataType"
}
]
},
"Statistics": {
"ParameterCount": 1041,
"LinkCount": 0,
"HeaderCount": 2121,
"CallbackCount": 0,
"CurrentKeys": {
"Path": null,
"Response": null,
"Extension": null,
"Callback": null,
"Header": null,
"Content": null,
"Example": null,
"Encoding": null,
"Operation": null,
"ServerVariable": null,
"Link": null
},
"OperationCount": 533,
"PathItemCount": 353,
"PathString": "#/",
"SchemaCount": 4756,
"ResponseCount": 533,
"RequestBodyCount": 203
},
"IsValid": false
}
} |
Thank you Christian for the support, Really appreciated! |
Describe the bug
Running Refitter on the following Jira OpenAPI Specs fails during validation.
https://dac-static.atlassian.com/cloud/jira/platform/swagger-v3.v3.json?_v=1.7122.0-0.1305.0
Support Key:
b5jb4se
OpenAPI Specifications
If possible, please include the OpenAPI specifications that failed
https://dac-static.atlassian.com/cloud/jira/platform/swagger-v3.v3.json?_v=1.7122.0-0.1305.0
Additional context
It doesn't fail for other specs from the same provider, for instance, Confluence.
The text was updated successfully, but these errors were encountered: