Skip to content

Commit

Permalink
cr
Browse files Browse the repository at this point in the history
  • Loading branch information
armandobelardo committed Sep 11, 2024
1 parent e475148 commit 777d69b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
3 changes: 0 additions & 3 deletions fern/apis/fdr/definition/generators/commons.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json

types:
OrganizationId:
type: string

Yank:
docs: A yank is a metadata object that declares if a version is safe to upgrade to, if present the answer is no.
properties:
Expand Down
13 changes: 10 additions & 3 deletions fern/apis/fdr/definition/generators/git.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,20 @@ docs: Produces an internal schema to easily track and view pull requests across

imports:
commons: ./commons.yml
fdrCommons: ../commons.yml

types:
# Soon to add to our data model:
# - Orgs (internal)
# - Products (internal)
# - Features (internal)
RepositoryId: string
GithubRepositoryId:
properties:
id: string

RepositoryId:
union:
github: GithubRepositoryId

Repository:
properties:
Expand All @@ -22,7 +29,7 @@ types:
docs: The full name of the repository, e.g. fern-api/fern. It includes the owner, as well as the name of the repository.
url: string
repositoryOwner:
type: commons.OrganizationId
type: fdrCommons.OrgId
docs: The Fern organization ID of the repository owner.

GithubUser:
Expand Down Expand Up @@ -66,7 +73,7 @@ types:
OrganizationRepositoryMap:
docs: A mapping of organization ID to the repositories that Fern manages for that organization.
properties:
organizationId: commons.OrganizationId
organizationId: fdrCommons.OrgId
repositoryIds: list<RepositoryId>

ListRepositoriesResponse:
Expand Down

0 comments on commit 777d69b

Please sign in to comment.