Forum Discussion
Recent Discussions
- 5 days ago
- 21 days ago
","kudosSumWeight":0,"postTime":"2020-12-01T05:12:57.299-08:00","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"attachments":{"__typename":"AttachmentConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"tags":{"__typename":"TagConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"timeToRead":3,"currentRevision":{"__ref":"Revision:revision:210127_6"},"latestVersion":null,"metrics":{"__typename":"MessageMetrics","views":2627},"visibilityScope":"PUBLIC","canonicalUrl":null,"seoTitle":null,"seoDescription":null,"isEscalated":null,"placeholder":false,"originalMessageForPlaceholder":null,"messagePolicies":{"__typename":"MessagePolicies","canModerateSpamMessage":{"__typename":"PolicyResult","failureReason":{"__typename":"FailureReason","message":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","key":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","args":[]}}},"archivalData":null,"customFields":[],"body":"
basePath : \"/services/apexrest/sg\"\nschemes:\n- \"https\"\n- \"http\"\npaths:\n /0.1/customer:\n get:\n description: Should give an overview / a list of all customers with state active. List should contain ID and Name of customer.\n responses:\n 200:\n description: Successfull\n schema:\n type: array\n items:\n properties:\n id:\n type: integer\n example: 007\n name:\n type: string\n example: Nishant\n count:\n type: integer\n example: 04121988\n security:\n - subscription_auth:\n - \"write:pets\"\n - \"read:pets\"\n \n /0.1/customer/{account_id}:\n get:\n summary: Get a user by ID\n parameters:\n - in: path\n name: account_id\n type: integer\n required: true\n description: Numeric ID of the Account to get Account Details\n responses:\n 200:\n description: Account Details\n schema:\n type: object\n properties:\n name:\n type: string\n example: Nishant\n site:\n type: string\n example: berlin\n billingAddress:\n type: string\n example: berlin\n description:\n type: string\n example: Account's details\n phone:\n type: integer\n example: 02736464648494\n shippingAddress:\n type: string\n example: berlin\n website:\n type : string\n example : www.XXXX.com\n childAccounts:\n type: object\n items:\n properties:\n Id :\n type : string\n name :\n type : string\n createdBy:\n type: object\n items:\n properties:\n Id :\n type : string\n name :\n type : string\n lastModifiedBy:\n type: object\n items:\n properties:\n Id :\n type : string\n name :\n type : string\n parentAccount:\n type: object\n items:\n properties:\n Id :\n type : string\n name :\n type : string\n security:\n - subscription_auth:\n - \"write:pets\"\n - \"read:pets\"\n /0.1/customer/{account_id}/subscriptions:\n get:\n summary: Get a user's Subscription by ID\n parameters:\n - in: path\n name: account_id\n type: integer\n required: true\n description: Numeric ID of the Account to get\n responses:\n 200:\n description: Account Details\n schema:\n type: object\n properties:\n activeSubscriptions:\n type: object\n items:\n properties:\n Id :\n type : string\n name :\n type : string\n countActiveSubscriptions:\n type: integer\n inActiveSubscriptions:\n type: object\n items:\n properties:\n Id :\n type : string\n name :\n type : string\n countInActiveSubscriptions:\n type: integer\n canceledSubscriptions:\n type: object\n items:\n properties:\n Id :\n type : string\n name :\n type : string\n countCanceledSubscriptions:\n type: integer\n example: 20000\n security:\n - subscription_auth:\n - \"write:pets\"\n - \"read:pets\"\n /0.1/subscription:\n get:\n description: Should give an overview / a list of all subscriptions with state active.\n responses:\n 200:\n description: Successfull\n schema:\n type: array\n items:\n properties:\n activeSubscriptions:\n type: object\n items:\n properties:\n Id :\n type : string\n name :\n type : string\n countActiveSubscriptions:\n type: integer\n example: 04121988\n security:\n - subscription_auth:\n - \"write:pets\"\n - \"read:pets\"\n /0.1/subscription/{SUBSCRIPTION_ID}/:\n get:\n summary: Get a user's Subscription by ID\n parameters:\n - in: path\n name: SUBSCRIPTION_ID\n type: integer\n required: true\n description: Numeric ID of the Subscription to get\n responses:\n 200:\n description: Subscription Details\n schema:\n type: object\n properties:\n id:\n type: string\n example: 564664564Nishant\n name:\n type: string\n example: Nishant\n account:\n type: object\n items:\n properties:\n Id :\n type : string\n name :\n type : string\n createdBy:\n type: object\n items:\n properties:\n Id :\n type : string\n name :\n type : string\n currency:\n type: integer\n example: 02736464648494\n initialMRR:\n type: integer\n lastInvoiceRun:\n type : string\n owner:\n type: object\n items:\n properties:\n Id :\n type : string\n name :\n type : string\n nextInvoice:\n type: string\n lastModifiedBy:\n type: object\n items:\n properties:\n Id :\n type : string\n name :\n type : string\n quoteNumber:\n type: string\n renewalDate:\n type: string\n startDate:\n type: string\n status:\n type: string\n security:\n - subscription_auth:\n - \"write:pets\"\n - \"read:pets\"\n /0.2/jobs/{JOB_ID}/:\n get:\n summary: Get a user's Service by Job_ID\n parameters:\n - in: path\n name: JOB_ID\n type: integer\n required: true\n description: Numeric ID of the Job to get details from the Service object\n responses:\n 200:\n description: Job Details\n schema:\n type: object\n properties:\n name:\n type: string\n example: Nishant\n Price:\n type: integer\n example: 02736464648494\n Channel:\n type : string\n Date:\n type: string\n security:\n - subscription_auth:\n - \"write:pets\"\n - \"read:pets\"\n \n securitySchemes:\n oAuth2ClientCredentials:\n type: oauth2\n description: /services/oauth2/success\n flows: \n clientCredentials: \n tokenUrl: /oauth2/token\n scopes: \n write: modify your account\n read: read your Account\nsecurityDefinitions:\n subscription_auth:\n type: \"oauth2\"\n authorizationUrl: \"http://--uat.lightning.force.com/oauth/dialog\"\n flow: \"implicit\"\n scopes:\n write:pets: \"modify subscription\"\n read:pets: \"read your record\"\n api_key:\n type: \"apiKey\"\n name: \"api_key\"\n in: \"header\"
"},"Conversation:conversation:210127":{"__typename":"Conversation","id":"conversation:210127","solved":true,"topic":{"__ref":"ForumTopicMessage:message:210127"},"lastPostingActivityTime":"2020-12-01T08:02:37.545-08:00","lastPostTime":"2020-12-01T08:02:37.545-08:00","unreadReplyCount":7,"isSubscribed":false},"ModerationData:moderation_data:210127":{"__typename":"ModerationData","id":"moderation_data:210127","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":"member"},"Revision:revision:210127_6":{"__typename":"Revision","id":"revision:210127_6","lastEditTime":"2020-12-01T07:36:24.230-08:00"},"ForumReplyMessage:message:210136":{"__typename":"ForumReplyMessage","id":"message:210136","conversation":{"__ref":"Conversation:conversation:210127"},"author":{"__ref":"User:user:12406"},"revisionNum":1,"uid":210136,"depth":1,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:SwaggerHub"},"subject":"Re: Structural error at paths","readOnly":false,"editFrozen":false,"moderationData":{"__ref":"ModerationData:moderation_data:210136"},"parent":{"__ref":"ForumTopicMessage:message:210127"},"body":"
Can you please format your YAML as code to preserve the original indentation? Otherwise it's hard to see where the error might be.
\n\n
","body@stringLength":"604","rawBody":"
Can you please format your YAML as code to preserve the original indentation? Otherwise it's hard to see where the error might be.
\n\n
OK I see the error now. It's caused by an extra \"securitySchemes\" section in \"paths\". You need to remove it.
\n\n
","body@stripHtml({\"removeProcessingText\":true,\"removeSpoilerMarkup\":true,\"removeTocMarkup\":true,\"truncateLength\":200})@stringLength":"131","postTime":"2020-12-01T07:57:29.762-08:00","lastPublishTime":"2020-12-01T07:57:29.762-08:00","images":{"__typename":"AssociatedImageConnection","edges":[{"__typename":"AssociatedImageEdge","cursor":"MjQuMTF8Mi4xfG98MjV8X05WX3wx","node":{"__ref":"AssociatedImage:{\"url\":\"https://community.smartbear.com/t5/s/nwkab66374/images/bS0yMTAxNTctOTczMmlCQzlEMDU4Q0IwN0U1OTM3?revision=1\"}"}}],"totalCount":1,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"attachments":{"__typename":"AttachmentConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"solution":true,"metrics":{"__typename":"MessageMetrics","views":2497},"placeholder":false,"originalMessageForPlaceholder":null,"videos":{"__typename":"VideoConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"isEscalated":null,"entityType":"FORUM_REPLY","eventPath":"category:SwaggerHub/community:nwkab66374board:SwaggerHub/message:210127/message:210157","customFields":[]},"ModerationData:moderation_data:210136":{"__typename":"ModerationData","id":"moderation_data:210136","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"AssociatedImage:{\"url\":\"https://community.smartbear.com/t5/s/nwkab66374/images/bS0yMTAxMzYtOTAxMmlGMjlCMTYxMkIzODEzREI1?revision=1\"}":{"__typename":"AssociatedImage","url":"https://community.smartbear.com/t5/s/nwkab66374/images/bS0yMTAxMzYtOTAxMmlGMjlCMTYxMkIzODEzREI1?revision=1","title":"HKosova_0-1594914317648.png","associationType":"BODY","width":584,"height":317,"altText":null},"Revision:revision:210136_1":{"__typename":"Revision","id":"revision:210136_1","lastEditTime":"2020-12-01T05:58:24.247-08:00"},"QueryVariables:ReplyList:message:210136:1":{"__typename":"QueryVariables","id":"ReplyList:message:210136:1","value":{"id":"message:210136","first":10,"sorts":{"kudosSumWeight":{"direction":"DESC","order":0},"postTime":{"direction":"ASC","order":1}},"repliesFirst":3,"repliesFirstDepthThree":1,"repliesSorts":{"kudosSumWeight":{"direction":"DESC","order":0},"postTime":{"direction":"ASC","order":1}},"useAvatar":true,"useAuthorLogin":true,"useAuthorRank":true,"useBody":true,"useKudosCount":true,"useTimeToRead":false,"useMedia":false,"useReadOnlyIcon":false,"useRepliesCount":true,"useSearchSnippet":false,"useAcceptedSolutionButton":true,"useSolvedBadge":false,"useAttachments":false,"attachmentsFirst":5,"useTags":false,"useNodeAncestors":false,"useUserHoverCard":true,"useNodeHoverCard":false,"useModerationStatus":true,"usePreviewSubjectModal":false,"useMessageStatus":true}},"CachedAsset:text:en_US-shared/client/components/users/UserAvatar-1720711077000":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/users/UserAvatar-1720711077000","value":{"altText":"{login}'s avatar","altTextGeneric":"User's avatar"},"localOverride":false},"CachedAsset:text:en_US-shared/client/components/ranks/UserRankLabel-1720711077000":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/ranks/UserRankLabel-1720711077000","value":{"altTitle":"Icon for {rankName} rank"},"localOverride":false},"CachedAsset:text:en_US-components/messages/AcceptedSolutionButton-1720711077000":{"__typename":"CachedAsset","id":"text:en_US-components/messages/AcceptedSolutionButton-1720711077000","value":{"accept":"Mark as Solution","accepted":"Marked as Solution","errorHeader":"Error!","errorAdd":"There was an error marking as solution.","errorRemove":"There was an error unmarking as solution.","solved":"Solved"},"localOverride":false},"CachedAsset:text:en_US-components/messages/ThreadedReplyList-1720711077000":{"__typename":"CachedAsset","id":"text:en_US-components/messages/ThreadedReplyList-1720711077000","value":{"title":"{count, plural, one{# Reply} other{# Replies}}","title@board:BLOG":"{count, plural, one{# Comment} other{# Comments}}","title@board:TKB":"{count, plural, one{# Comment} other{# Comments}}","title@board:IDEA":"{count, plural, one{# Comment} other{# Comments}}","title@board:OCCASION":"{count, plural, one{# Comment} other{# Comments}}","noRepliesTitle":"No Replies","noRepliesTitle@board:BLOG":"No Comments","noRepliesTitle@board:TKB":"No Comments","noRepliesTitle@board:IDEA":"No Comments","noRepliesTitle@board:OCCASION":"No Comments","noRepliesDescription":"Be the first to reply","noRepliesDescription@board:BLOG":"Be the first to comment","noRepliesDescription@board:TKB":"Be the first to comment","noRepliesDescription@board:IDEA":"Be the first to comment","noRepliesDescription@board:OCCASION":"Be the first to comment","messageReadOnlyAlert:BLOG":"Comments have been turned off for this post","messageReadOnlyAlert:TKB":"Comments have been turned off for this article","messageReadOnlyAlert:IDEA":"Comments have been turned off for this idea","messageReadOnlyAlert:FORUM":"Replies have been turned off for this discussion","messageReadOnlyAlert:OCCASION":"Comments have been turned off for this event"},"localOverride":false},"CachedAsset:text:en_US-shared/client/components/nodes/NodeIcon-1720711077000":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/nodes/NodeIcon-1720711077000","value":{"contentType":"Content Type {style, select, FORUM {Forum} BLOG {Blog} TKB {Knowledge Base} IDEA {Ideas} OCCASION {Events} other {}} icon"},"localOverride":false},"ModerationData:moderation_data:210149":{"__typename":"ModerationData","id":"moderation_data:210149","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"ForumReplyMessage:message:210149":{"__typename":"ForumReplyMessage","uid":210149,"id":"message:210149","revisionNum":1,"author":{"__ref":"User:user:93156"},"readOnly":false,"repliesCount":5,"depth":2,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:SwaggerHub"},"parent":{"__ref":"ForumReplyMessage:message:210136"},"conversation":{"__ref":"Conversation:conversation:210127"},"subject":"Re: Structural error at paths","moderationData":{"__ref":"ModerationData:moderation_data:210149"},"body":"
Thanks for getting back. i edited it for your kind reference.
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"63","kudosSumWeight":0,"postTime":"2020-12-01T07:08:45.381-08:00","lastPublishTime":"2020-12-01T07:08:45.381-08:00","metrics":{"__typename":"MessageMetrics","views":2534},"visibilityScope":"PUBLIC","placeholder":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"entityType":"FORUM_REPLY","eventPath":"category:SwaggerHub/community:nwkab66374board:SwaggerHub/message:210127/message:210149","replies":{"__typename":"MessageConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[{"__typename":"MessageEdge","cursor":"MjQuMTF8Mi4xfG98M3wxNDowLDM5OjF8MQ","node":{"__ref":"ForumReplyMessage:message:210152"}}]},"customFields":[],"attachments":{"__typename":"AttachmentConnection","edges":[],"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}}},"ModerationData:moderation_data:210152":{"__typename":"ModerationData","id":"moderation_data:210152","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"ForumReplyMessage:message:210152":{"__typename":"ForumReplyMessage","uid":210152,"id":"message:210152","revisionNum":1,"author":{"__ref":"User:user:12406"},"readOnly":false,"repliesCount":4,"depth":3,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:SwaggerHub"},"parent":{"__ref":"ForumReplyMessage:message:210149"},"conversation":{"__ref":"Conversation:conversation:210127"},"subject":"Re: Structural error at paths","moderationData":{"__ref":"ModerationData:moderation_data:210152"},"body":"If don't see any errors about paths, only errors about missing securityDefinitions.
\n\n
\n
\n
Is it possible that your original API definition uses a mix of tabs and spaces for indentation? This can cause strange errors like the one you're seeing. Try to indent everything using spaces and see if it helps.
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"213","kudosSumWeight":0,"postTime":"2020-12-01T07:29:59.623-08:00","lastPublishTime":"2020-12-01T07:29:59.623-08:00","metrics":{"__typename":"MessageMetrics","views":2504},"visibilityScope":"PUBLIC","placeholder":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"entityType":"FORUM_REPLY","eventPath":"category:SwaggerHub/community:nwkab66374board:SwaggerHub/message:210127/message:210152","replies":{"__typename":"MessageConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":true,"endCursor":"MjQuMTF8Mi4xfG98MXwxNDowLDM5OjF8MQ","hasPreviousPage":false,"startCursor":null},"edges":[{"__typename":"MessageEdge","cursor":"MjQuMTF8Mi4xfG98MXwxNDowLDM5OjF8MQ","node":{"__ref":"ForumReplyMessage:message:210153"}}]},"customFields":[],"attachments":{"__typename":"AttachmentConnection","edges":[],"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}}},"ModerationData:moderation_data:210153":{"__typename":"ModerationData","id":"moderation_data:210153","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"ForumReplyMessage:message:210153":{"__typename":"ForumReplyMessage","author":{"__ref":"User:user:93156"},"id":"message:210153","revisionNum":1,"uid":210153,"depth":4,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:SwaggerHub"},"parent":{"__ref":"ForumReplyMessage:message:210152"},"conversation":{"__ref":"Conversation:conversation:210127"},"subject":"Re: Structural error at paths","moderationData":{"__ref":"ModerationData:moderation_data:210153"},"body":"you are checking it in open api 3.0, i am having this problem in swagger 2.0 version
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"86","kudosSumWeight":0,"repliesCount":0,"postTime":"2020-12-01T07:38:00.581-08:00","lastPublishTime":"2020-12-01T07:38:00.581-08:00","metrics":{"__typename":"MessageMetrics","views":2499},"visibilityScope":"PUBLIC","placeholder":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"entityType":"FORUM_REPLY","eventPath":"category:SwaggerHub/community:nwkab66374board:SwaggerHub/message:210127/message:210153","customFields":[],"attachments":{"__typename":"AttachmentConnection","edges":[],"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}}}}}},"page":"/forums/ForumMessagePage/ForumMessagePage","query":{"boardId":"swaggerhub","messageSubject":"structural-error-at-paths","messageId":"210127","replyId":"210136"},"buildId":"OKtI0OLKuXmERTJKBVqYX","runtimeConfig":{"buildInformationVisible":false,"logLevelApp":"info","logLevelMetrics":"info","openTelemetryClientEnabled":false,"openTelemetryConfigName":"smartbear","openTelemetryServiceVersion":"24.11.0","openTelemetryUniverse":"prod","openTelemetryCollector":"http://localhost:4318","openTelemetryRouteChangeAllowedTime":"5000","apolloDevToolsEnabled":false},"isFallback":false,"isExperimentalCompile":false,"dynamicIds":["./components/seo/QAPageSchema/QAPageSchema.tsx","./components/community/Navbar/NavbarWidget.tsx","./components/community/Breadcrumb/BreadcrumbWidget.tsx","./components/messages/TopicWithThreadedReplyListWidget/TopicWithThreadedReplyListWidget.tsx","./components/messages/RelatedContentWidget/RelatedContentWidget.tsx","./components/messages/MessageListForNodeByRecentActivityWidget/MessageListForNodeByRecentActivityWidget.tsx","./components/customComponent/CustomComponent/CustomComponent.tsx","./components/messages/MessageView/MessageViewStandard/MessageViewStandard.tsx","../shared/client/components/common/List/UnstyledList/UnstyledList.tsx","./components/messages/MessageView/MessageView.tsx","./components/messages/MessageView/MessageViewInline/MessageViewInline.tsx","../shared/client/components/common/List/ListGroup/ListGroup.tsx","../shared/client/components/common/Pager/PagerLoadMore/PagerLoadMore.tsx"],"appGip":true,"scriptLoader":[]}🎉 NEW API Hub and Insight Hub are here to simplify workflows and help you deliver quality faster. Learn More