Skip to content

Commit

Permalink
Merge pull request #121 from Yashsharma1911/yash/addWorkspaceSchema
Browse files Browse the repository at this point in the history
Add workspace schema and struct
  • Loading branch information
Yashsharma1911 authored Jul 31, 2024
2 parents a35a7a4 + 2a44368 commit f365196
Show file tree
Hide file tree
Showing 5 changed files with 746 additions and 3 deletions.
15 changes: 15 additions & 0 deletions models/core/core.go

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

88 changes: 88 additions & 0 deletions models/v1beta1/workspace.go

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

62 changes: 61 additions & 1 deletion schemas/constructs/openapi/common/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ components:
x-go-type-name: OrganizationId
x-go-type-skip-optional-pointer: true

environment_id:
general_id:
type: string
format: uuid
x-go-type: uuid.UUID
Expand All @@ -186,9 +186,69 @@ components:
x-oapi-codegen-extra-tags:
db: id
json: id
x-go-type-name: GeneralId
x-go-type-skip-optional-pointer: true

environment_id:
type: string
format: uuid
x-go-type: uuid.UUID
x-go-type-import:
path: github.com/gofrs/uuid
x-oapi-codegen-extra-tags:
db: environment_id
json: environment_id
x-go-type-name: EnvironmentId
x-go-type-skip-optional-pointer: true

workspace_id:
type: string
format: uuid
x-go-type: uuid.UUID
x-go-type-import:
path: github.com/gofrs/uuid
x-oapi-codegen-extra-tags:
db: workspace_id
json: workspace_id
x-go-type-name: WorkspaceId
x-go-type-skip-optional-pointer: true

view_id:
type: string
format: uuid
x-go-type: uuid.UUID
x-go-type-import:
path: github.com/gofrs/uuid
x-oapi-codegen-extra-tags:
db: view_id
json: view_id
x-go-type-name: ViewId
x-go-type-skip-optional-pointer: true

team_id:
type: string
format: uuid
x-go-type: uuid.UUID
x-go-type-import:
path: github.com/gofrs/uuid
x-oapi-codegen-extra-tags:
db: team_id
json: team_id
x-go-type-name: TeamId
x-go-type-skip-optional-pointer: true

design_id:
type: string
format: uuid
x-go-type: uuid.UUID
x-go-type-import:
path: github.com/gofrs/uuid
x-oapi-codegen-extra-tags:
db: design_id
json: design_id
x-go-type-name: DesignId
x-go-type-skip-optional-pointer: true

credential_uuid:
type: string
format: uuid
Expand Down
4 changes: 2 additions & 2 deletions schemas/constructs/openapi/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ components:
environment:
properties:
ID:
$ref: ./common/core.yml#/components/schemas/environment_id
$ref: ./common/core.yml#/components/schemas/general_id
name:
$ref: ./common/core.yml#/components/schemas/text
description:
Expand All @@ -45,7 +45,7 @@ components:
environmentConnectionMapping:
properties:
ID:
$ref: ./common/core.yml#/components/schemas/environment_id
$ref: ./common/core.yml#/components/schemas/general_id
environment_id:
type: string
format: uuid
Expand Down
Loading

0 comments on commit f365196

Please sign in to comment.