Skip to content

Commit

Permalink
Merge pull request #76 from adzerk/revert-74-tomascasas/sc-65908/crea…
Browse files Browse the repository at this point in the history
…te-a-schema-helper

Revert "[sc-65908] Work around some schema improvements"
  • Loading branch information
vkurup authored Dec 5, 2024
2 parents 69eaead + 07110cf commit c6838ed
Show file tree
Hide file tree
Showing 11 changed files with 163 additions and 852 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ build
.env
node_modules
.secrets
.vscode
119 changes: 118 additions & 1 deletion management/ad.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,124 @@ paths:
content:
application/json:
schema:
$ref: './schemas/ad.yaml#/schemas/AdInput'
type: object
required:
- Creative
- FlightId
- IsActive
properties:
Creative:
type: object
properties:
Id:
type: integer
format: int32
FlightId:
type: integer
format: int32
IsActive:
type: boolean
RtbCustomFields:
type: string
nullable: true
ActiveKeywords:
nullable: true
type: array
items:
type: string
CustomTargeting:
type: string
nullable: true
DistributionType:
type: integer
format: int32
enum: [1, 2, 3]
nullable: true
Percentage:
type: integer
format: int32
nullable: true
Impressions:
type: integer
format: int32
nullable: true
SiteId:
type: integer
format: int32
nullable: true
ZoneId:
type: integer
format: int32
nullable: true
IsDeleted:
type: boolean
nullable: true
Iframe:
type: boolean
nullable: true
SizeOverride:
type: boolean
nullable: true
IsStartEndDateOverride:
type: boolean
nullable: true
StartDateIso:
type: string
format: date
nullable: true
EndDateIso:
type: string
format: date
nullable: true
IsGoalOverride:
type: boolean
nullable: true
GoalType:
type: integer
format: int32
nullable: true
enum: [1, 2, 3, 7, 8, 9, 10]
Goal:
type: integer
format: int32
nullable: true
IsNetworkAd:
type: boolean
nullable: true
IsNoTrack:
type: boolean
nullable: true
DontAffectParentFreqCap:
type: boolean
nullable: true
FreqCap:
type: integer
format: int32
nullable: true
FreqCapDuration:
type: integer
format: int32
nullable: true
FreqCapType:
type: integer
format: int32
nullable: true
enum: [1, 2, 3]
Price:
type: number
format: float
nullable: true
ExternalMetadata:
type: string
nullable: true
CustomRelevancyScore:
type: integer
format: int32
nullable: true
ProductId:
type: integer
format: int32
nullable: true
responses:
200:
description: The newly created Ad
Expand Down
192 changes: 0 additions & 192 deletions management/asset.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion management/campaign.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ paths:
content:
application/json:
schema:
$ref: './schemas/campaign.yaml#/schemas/CampaignInput'
$ref: './schemas/campaign.yaml#/schemas/Campaign'
responses:
200:
description: Campaign Created
Expand Down
Loading

0 comments on commit c6838ed

Please sign in to comment.