Building the client from OpenApi spec results in error

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • Component/s: API - Manage
    • None
    • 2
    • Severity 3 - Minor

      Issue Summary

      This is reproducible on Data Center: (yes) / (no)

      Steps to Reproduce

      1. Download the openapi spec from https://developer.statuspage.io/ and attempt a build

      Expected Results

      Client should build and be use-able

      Actual Results

      Client fails to build and results in error

      cdegidio@F761F96TV7 statuspage % go build
      # github.com/GIT_USER_ID/GIT_REPO_ID
      ./api_metrics.go:610:6: ApiGetPagesPageIdMetricsProvidersMetricsProviderIdMetricsRequest redeclared in this block
      	./api_metric_providers.go:481:6: other declaration of ApiGetPagesPageIdMetricsProvidersMetricsProviderIdMetricsRequest
      ./api_metrics.go:620:75: method ApiGetPagesPageIdMetricsProvidersMetricsProviderIdMetricsRequest.Page already declared at ./api_metric_providers.go:491:75
      ./api_metrics.go:626:75: method ApiGetPagesPageIdMetricsProvidersMetricsProviderIdMetricsRequest.PerPage already declared at ./api_metric_providers.go:497:75
      ./api_metrics.go:631:75: method ApiGetPagesPageIdMetricsProvidersMetricsProviderIdMetricsRequest.Execute already declared at ./api_metric_providers.go:502:75
      ./api_metrics.go:1293:6: ApiPostPagesPageIdMetricsProvidersMetricsProviderIdMetricsRequest redeclared in this block
      	./api_metric_providers.go:1000:6: other declaration of ApiPostPagesPageIdMetricsProvidersMetricsProviderIdMetricsRequest
      ./api_users.go:179:6: ApiGetOrganizationsOrganizationIdPermissionsUserIdRequest redeclared in this block
      	./api_permissions.go:26:6: other declaration of ApiGetOrganizationsOrganizationIdPermissionsUserIdRequest
      ./api_component_groups.go:473:9: undefined: PartialStartDate
      ./api_component_groups.go:474:7: undefined: PartialEndDate
      ./api_components.go:735:9: undefined: PartialStartDate
      ./api_components.go:736:7: undefined: PartialEndDate
      ./api_metrics.go:631:75: too many errors
      cdegidio@F761F96TV7 statuspage % 
      

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            Assignee:
            Unassigned
            Reporter:
            Chris DeGidio
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: