@@ -79,7 +79,7 @@ describe('RestApiConfigSchema', () => {
7979 expect ( config . enableDiscovery ) . toBe ( false ) ;
8080 } ) ;
8181
82- it ( '[#11983] enableSearch defaults to true — search is ON unless opted out' , ( ) => {
82+ it ( 'enableSearch defaults to true — search is ON unless opted out' , ( ) => {
8383 // Pinning the MATERIALIZED default (not just the declaration) is what makes
8484 // a later `.optional()` — which would hand `undefined` to the REST layer —
8585 // fail here rather than silently change the mount decision.
@@ -88,7 +88,7 @@ describe('RestApiConfigSchema', () => {
8888 expect ( config . enableSearch ) . toBe ( true ) ;
8989 } ) ;
9090
91- it ( '[#11983] enableSearch: false is the declared deployment-wide opt-out, and it SURVIVES the parse' , ( ) => {
91+ it ( 'enableSearch: false is the declared deployment-wide opt-out, and it SURVIVES the parse' , ( ) => {
9292 // Before this key had a declared seat, this exact parse was the measured
9393 // trap: `RestApiConfigSchema` is not `.strict()`, so it STRIPPED the
9494 // undeclared key and any consumer of the parsed output silently got search
@@ -103,7 +103,7 @@ describe('RestApiConfigSchema', () => {
103103 expect ( RestApiConfigSchema . parse ( { enableSearch : true } ) . enableSearch ) . toBe ( true ) ;
104104 } ) ;
105105
106- it ( '[#11983] enableSearch is authorable without a cast, and is a boolean (compile-time)' , ( ) => {
106+ it ( 'enableSearch is authorable without a cast, and is a boolean (compile-time)' , ( ) => {
107107 // The declaration's REASON for existing: `objectstack.config.ts` authors
108108 // the key by name and `packages/rest`'s `normalizeConfig` reads it. Both go
109109 // through this input type, so this is the pin that says the key no longer
@@ -205,7 +205,7 @@ describe('CrudEndpointsConfigSchema', () => {
205205 expect ( config . operations ?. delete ) . toBe ( false ) ;
206206 } ) ;
207207
208- it ( '[#14691] REJECTS `patterns` with the retirement prescription — the key never customized a route' , ( ) => {
208+ it ( 'REJECTS `patterns` with the retirement prescription — the key never customized a route' , ( ) => {
209209 expect ( ( ) => CrudEndpointsConfigSchema . parse ( {
210210 patterns : {
211211 create : { method : 'POST' , path : '/objects/{object}' } ,
@@ -221,14 +221,14 @@ describe('CrudEndpointsConfigSchema', () => {
221221 expect ( config . dataPrefix ) . toBe ( '/objects' ) ;
222222 } ) ;
223223
224- it ( '[#14691] REJECTS `objectParamStyle` — both former enum values, with the prescription' , ( ) => {
224+ it ( 'REJECTS `objectParamStyle` — both former enum values, with the prescription' , ( ) => {
225225 for ( const objectParamStyle of [ 'path' , 'query' ] ) {
226226 expect ( ( ) => CrudEndpointsConfigSchema . parse ( { objectParamStyle } ) , objectParamStyle )
227227 . toThrow ( / ` c r u d \. o b j e c t P a r a m S t y l e ` w a s r e m o v e d .* p a t h s e g m e n t .* D e l e t e t h e k e y / s) ;
228228 }
229229 } ) ;
230230
231- it ( '[#14691] the tombstones reject one key each, not the config — every live key still parses' , ( ) => {
231+ it ( 'the tombstones reject one key each, not the config — every live key still parses' , ( ) => {
232232 const config = CrudEndpointsConfigSchema . parse ( {
233233 operations : { list : false } ,
234234 dataPrefix : '/records' ,
@@ -266,7 +266,7 @@ describe('MetadataEndpointsConfigSchema', () => {
266266 expect ( config . enableCache ) . toBe ( false ) ;
267267 } ) ;
268268
269- it ( '[#14691] REJECTS `cacheTtl` — including the negative value the old contract accepted' , ( ) => {
269+ it ( 'REJECTS `cacheTtl` — including the negative value the old contract accepted' , ( ) => {
270270 for ( const cacheTtl of [ 7200 , 0 , - 1 ] ) {
271271 expect ( ( ) => MetadataEndpointsConfigSchema . parse ( { cacheTtl } ) , String ( cacheTtl ) )
272272 . toThrow ( / ` m e t a d a t a \. c a c h e T t l ` w a s r e m o v e d .* t a k e s n o T T L .* D e l e t e t h e k e y / s) ;
@@ -290,7 +290,7 @@ describe('MetadataEndpointsConfigSchema', () => {
290290 expect ( config . endpoints ?. maintenance ) . toBe ( true ) ;
291291 } ) ;
292292
293- it ( '[#14691] REJECTS `endpoints.schema` — it gated a route that does not exist' , ( ) => {
293+ it ( 'REJECTS `endpoints.schema` — it gated a route that does not exist' , ( ) => {
294294 expect ( ( ) => MetadataEndpointsConfigSchema . parse ( { endpoints : { schema : false } } ) )
295295 . toThrow ( / ` m e t a d a t a \. e n d p o i n t s \. s c h e m a ` w a s r e m o v e d .* d o e s n o t e x i s t .* D e l e t e t h e k e y / s) ;
296296 } ) ;
@@ -386,12 +386,12 @@ describe('BatchEndpointsConfigSchema', () => {
386386 expect ( config . operations ) . not . toHaveProperty ( 'upsertMany' ) ;
387387 } ) ;
388388
389- it ( '[#14691] REJECTS `operations.upsertMany` — it gated a route that was never built' , ( ) => {
389+ it ( 'REJECTS `operations.upsertMany` — it gated a route that was never built' , ( ) => {
390390 expect ( ( ) => BatchEndpointsConfigSchema . parse ( { operations : { upsertMany : false } } ) )
391391 . toThrow ( / ` b a t c h \. o p e r a t i o n s \. u p s e r t M a n y ` w a s r e m o v e d .* n e v e r b u i l t .* D e l e t e t h e k e y .* ' u p s e r t ' / s) ;
392392 } ) ;
393393
394- it ( '[#14691] REJECTS `defaultAtomic` — atomicity is the per-request `options.atomic`' , ( ) => {
394+ it ( 'REJECTS `defaultAtomic` — atomicity is the per-request `options.atomic`' , ( ) => {
395395 for ( const defaultAtomic of [ true , false ] ) {
396396 expect ( ( ) => BatchEndpointsConfigSchema . parse ( { defaultAtomic } ) , String ( defaultAtomic ) )
397397 . toThrow ( / ` b a t c h \. d e f a u l t A t o m i c ` w a s r e m o v e d .* o p t i o n s \. a t o m i c .* D e l e t e t h e k e y / s) ;
@@ -400,27 +400,27 @@ describe('BatchEndpointsConfigSchema', () => {
400400} ) ;
401401
402402describe ( 'RouteGenerationConfigSchema' , ( ) => {
403- it ( 'should accept the empty sub-object — and materialize nothing, every key being a tombstone (#14691) ' , ( ) => {
403+ it ( 'should accept the empty sub-object — and materialize nothing, every key being a tombstone' , ( ) => {
404404 const config = RouteGenerationConfigSchema . parse ( { } ) ;
405405
406406 expect ( config ) . toEqual ( { } ) ;
407407 } ) ;
408408
409- it ( '[#14691] REJECTS `includeObjects` / `excludeObjects` — the object declares its own exposure' , ( ) => {
409+ it ( 'REJECTS `includeObjects` / `excludeObjects` — the object declares its own exposure' , ( ) => {
410410 expect ( ( ) => RouteGenerationConfigSchema . parse ( { includeObjects : [ 'account' , 'contact' ] } ) )
411411 . toThrow ( / ` r o u t e s \. i n c l u d e O b j e c t s ` w a s r e m o v e d .* D e l e t e t h e k e y .* e n a b l e \. a p i E n a b l e d .* e n a b l e \. a p i M e t h o d s / s) ;
412412 expect ( ( ) => RouteGenerationConfigSchema . parse ( { excludeObjects : [ 'system_log' ] } ) )
413413 . toThrow ( / ` r o u t e s \. e x c l u d e O b j e c t s ` w a s r e m o v e d .* D e l e t e t h e k e y .* e n a b l e \. a p i E n a b l e d .* e n a b l e \. a p i M e t h o d s / s) ;
414414 } ) ;
415415
416- it ( '[#14691] REJECTS `nameTransform` — every former enum value, `none` included' , ( ) => {
416+ it ( 'REJECTS `nameTransform` — every former enum value, `none` included' , ( ) => {
417417 for ( const nameTransform of [ 'none' , 'plural' , 'kebab-case' , 'camelCase' ] ) {
418418 expect ( ( ) => RouteGenerationConfigSchema . parse ( { nameTransform } ) , nameTransform )
419419 . toThrow ( / ` r o u t e s \. n a m e T r a n s f o r m ` w a s r e m o v e d .* D e l e t e t h e k e y .* c a n o n i c a l i d / s) ;
420420 }
421421 } ) ;
422422
423- it ( '[#14691] REJECTS `overrides` — the per-object record turned nothing on or off' , ( ) => {
423+ it ( 'REJECTS `overrides` — the per-object record turned nothing on or off' , ( ) => {
424424 expect ( ( ) => RouteGenerationConfigSchema . parse ( {
425425 overrides : {
426426 account : { enabled : true , basePath : '/accounts' } ,
@@ -473,7 +473,7 @@ describe('RestServerConfigSchema', () => {
473473 expect ( config . routes ) . toEqual ( { } ) ;
474474 } ) ;
475475
476- it ( '[#14691] a retired sub-object key is refused THROUGH the whole config, with its own prescription' , ( ) => {
476+ it ( 'a retired sub-object key is refused THROUGH the whole config, with its own prescription' , ( ) => {
477477 // The tombstones live on the sub-schemas; this pins that composing them
478478 // under `RestServerConfigSchema` changes nothing — the same authored key is
479479 // refused at the whole-config parse with the same string.
@@ -697,7 +697,7 @@ describe('Integration Tests', () => {
697697// tests were removed with the schemas (#4579, ADR-0049 enforce-or-remove).
698698// The retirement itself is pinned below.
699699
700- describe ( '[#4579] `RestServerConfig.openApi31` retirement' , ( ) => {
700+ describe ( '`RestServerConfig.openApi31` retirement' , ( ) => {
701701 it ( 'REJECTS an authored openApi31 block, with the fix in the message' , ( ) => {
702702 // Tombstoned, not deleted: RestServerConfigSchema is not `.strict()`, so a
703703 // plain deletion would silently strip the key — the author's webhook
@@ -739,7 +739,7 @@ describe('[#4579] `RestServerConfig.openApi31` retirement', () => {
739739// so the load-bearing pin is the compiler-API test below, with anti-vacuity
740740// guards (a resolution failure would otherwise make every assertion pass
741741// vacuously); sabotage-verified in the PR (re-adding an export turns it red).
742- describe ( '[#4579] the OpenApi31 block schemas are not exported from any entry point' , ( ) => {
742+ describe ( 'the OpenApi31 block schemas are not exported from any entry point' , ( ) => {
743743 const REMOVED_NAMES = [
744744 'OpenApi31ExtensionsSchema' ,
745745 'OpenApi31Extensions' ,
@@ -765,7 +765,7 @@ describe('[#4579] the OpenApi31 block schemas are not exported from any entry po
765765 expect ( apiNames ) . toContain ( 'RestApiConfigSchema' ) ;
766766
767767 for ( const removed of REMOVED_NAMES ) {
768- expect ( holdersOf ( removed ) , `no entry may export ${ removed } (#4579) ` ) . toEqual ( [ ] ) ;
768+ expect ( holdersOf ( removed ) , `no entry may export ${ removed } ` ) . toEqual ( [ ] ) ;
769769 }
770770 } ) ;
771771
@@ -789,7 +789,7 @@ describe('[#4579] the OpenApi31 block schemas are not exported from any entry po
789789 // and removed; WebhookEvent(Schema) was first renamed OpenApiWebhookEvent(Schema)
790790 // (#4572) and then removed outright with the openApi31 block (#4579).
791791 // Pin: this module declares neither the bare names nor the renamed ones.
792- it ( 'does not re-expose the bare WebhookEvent/WebhookConfig names from ./api (#4572) ' , async ( ) => {
792+ it ( 'does not re-expose the bare WebhookEvent/WebhookConfig names from ./api' , async ( ) => {
793793 const restServer = await import ( './rest-server.zod' ) ;
794794 expect ( 'WebhookEventSchema' in restServer ) . toBe ( false ) ;
795795 expect ( 'WebhookConfigSchema' in restServer ) . toBe ( false ) ;
0 commit comments