You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please note this test case is synthetic and does not represent the actual design we will use for relation navigational properties.
Current Behavior
The test fails with a stack-overflow error.
handles circular references:
RangeError: Maximum call stack size exceeded
at RegExp.test (<anonymous>)
at isTypeResolver (/Users/bajtos/src/loopback/next/packages/repository/src/type-resolver.ts:44:16)
at Object.resolveType (/Users/bajtos/src/loopback/next/packages/repository/src/type-resolver.ts:88:10)
at metaToJsonProperty (src/build-schema.ts:148:24)
at modelToJsonSchema (src/build-schema.ts:241:28)
at getJsonSchema (src/build-schema.ts:38:23)
at modelToJsonSchema (src/build-schema.ts:263:24)
at getJsonSchema (src/build-schema.ts:38:23)
at modelToJsonSchema (src/build-schema.ts:263:24)
at getJsonSchema (src/build-schema.ts:38:23)
at ` (src/build-schema.ts:263:24)
...
Expected Behavior
The tests passes.
Additional information
See the spike #2592 and the commit 2256435 for more details.
The idea is to introduce a new options argument to getJsonSchema and modelToJsonSchema functions, this argument will expect the following properties to begin with:
Description / Steps to reproduce / Feature proposal
Consider the following test case:
Please note this test case is synthetic and does not represent the actual design we will use for relation navigational properties.
Current Behavior
The test fails with a stack-overflow error.
Expected Behavior
The tests passes.
Additional information
See the spike #2592 and the commit 2256435 for more details.
The idea is to introduce a new
options
argument togetJsonSchema
andmodelToJsonSchema
functions, this argument will expect the following properties to begin with:Acceptance criteria
The text was updated successfully, but these errors were encountered: