File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -777,4 +777,4 @@ services:
777777 # @param services.dev.agentSession.skills.branch (required)
778778 branch : ' '
779779 # @param services.dev.agentSession.skills.path (required)
780- path : ' '
780+ path : ' '
Original file line number Diff line number Diff line change 251251 "minItems" : 1 ,
252252 "items" : {
253253 "type" : " object" ,
254- "additionalProperties" : true ,
254+ "additionalProperties" : false ,
255255 "properties" : {
256256 "name" : {
257257 "type" : " string"
15151515 }
15161516 }
15171517 }
1518- }
1518+ }
Original file line number Diff line number Diff line change @@ -133,8 +133,7 @@ const schema_1_0_0 = {
133133 minItems : 1 ,
134134 items : {
135135 type : 'object' ,
136- // Backward compatibility: ignore deprecated or repo-specific service keys at validation time.
137- additionalProperties : true ,
136+ additionalProperties : false ,
138137 properties : {
139138 name : { type : 'string' } ,
140139 appShort : { type : 'string' } ,
Original file line number Diff line number Diff line change @@ -453,36 +453,4 @@ describe('Yaml Service', () => {
453453 expect ( YamlService . getDetatchAfterBuildPipeline ( service ) ) . toEqual ( false ) ;
454454 } ) ;
455455 } ) ;
456-
457- describe ( 'schema compatibility' , ( ) => {
458- test ( 'accepts deprecated kedaScaleToZero config as a no-op' , ( ) => {
459- const deprecatedKedaConfig = `---
460- version: '1.0.0'
461-
462- services:
463- - name: 'legacy-service'
464- kedaScaleToZero:
465- enabled: true
466- minReplicaCount: 0
467- maxReplicaCount: 5
468- cooldownPeriod: 300
469- pollingInterval: 30
470- helm:
471- repository: 'example/legacy-service'
472- branchName: 'main'
473- deploymentMethod: 'native'
474- chart:
475- name: 'example-chart'
476- docker:
477- defaultTag: 'main'
478- app:
479- dockerfilePath: 'Dockerfile'
480- ` ;
481-
482- const parser = new YamlConfigParser ( ) ;
483- const config = parser . parseYamlConfigFromString ( deprecatedKedaConfig ) ;
484-
485- expect ( ( ) => new YamlConfigValidator ( ) . validate_1_0_0 ( config ) ) . not . toThrow ( ) ;
486- } ) ;
487- } ) ;
488456} ) ;
You can’t perform that action at this time.
0 commit comments