Skip to content

Commit

Permalink
feat(specs): bundle specs
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed Jan 14, 2022
1 parent a3c6272 commit 89fb5fd
Show file tree
Hide file tree
Showing 52 changed files with 619 additions and 304 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ jobs:
- name: Restore cache
uses: ./.github/actions/cache

- name: Cache ${{ matrix.client }} spec
id: cache
uses: actions/cache@v2
with:
path: '/home/runner/work/api-clients-automation/api-clients-automation/specs/dist/${{ matrix.client }}.yml'
key: ${{ runner.os }}-${{ matrix.client }}-spec-${{ hashFiles('specs/dist/${{ matrix.client }}.yml') }}

- name: Checking ${{ matrix.client }} specs
run: yarn build:specs ${{ matrix.client }}

Expand Down
24 changes: 24 additions & 0 deletions .redocly.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiDefinitions:
abtesting: specs/abtesting/spec.yml
analytics: specs/analytics/spec.yml
insights: specs/insights/spec.yml
personalization: specs/personalization/spec.yml
query-suggestions: specs/query-suggestions/spec.yml
recommend: specs/recommend/spec.yml
search: specs/search/spec.yml

lint:
extends:
- recommended

rules:
no-empty-servers: off
info-license: off # for now we can keep it off.
no-ambiguous-paths: off # this is out of our scope.
no-enum-type-mismatch: warn # keeping the warning since it only occur on one edge case

tag-description: error
parameter-description: error
operation-description: error
operation-parameters-unique: error
tags-alphabetical: error
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
public class SearchUserIdsResponseHits {

@SerializedName("userID")
private UserId userID;
private String userID;

@SerializedName("clusterName")
private String clusterName;
Expand All @@ -24,22 +24,22 @@ public class SearchUserIdsResponseHits {
@SerializedName("_highlightResult")
private SearchUserIdsResponseHighlightResult highlightResult;

public SearchUserIdsResponseHits userID(UserId userID) {
public SearchUserIdsResponseHits userID(String userID) {
this.userID = userID;
return this;
}

/**
* Get userID
* userID of the user.
*
* @return userID
*/
@javax.annotation.Nonnull
public UserId getUserID() {
public String getUserID() {
return userID;
}

public void setUserID(UserId userID) {
public void setUserID(String userID) {
this.userID = userID;
}

Expand Down
Loading

0 comments on commit 89fb5fd

Please sign in to comment.