mirror of
				https://github.com/Redocly/redoc.git
				synced 2025-11-01 00:07:32 +03:00 
			
		
		
		
	
							parent
							
								
									dcca44a92d
								
							
						
					
					
						commit
						89aa754063
					
				|  | @ -80,16 +80,12 @@ exports[`Components SchemaView discriminator should correctly render discriminat | |||
|             "options": "<<<filtered>>>", | ||||
|             "pattern": undefined, | ||||
|             "rawSchema": Object { | ||||
|               "allOf": undefined, | ||||
|               "default": undefined, | ||||
|               "parentRefs": Array [], | ||||
|               "type": "string", | ||||
|             }, | ||||
|             "readOnly": false, | ||||
|             "schema": Object { | ||||
|               "allOf": undefined, | ||||
|               "default": undefined, | ||||
|               "parentRefs": Array [], | ||||
|               "type": "string", | ||||
|             }, | ||||
|             "title": "", | ||||
|  |  | |||
|  | @ -192,6 +192,14 @@ export class OpenAPIParser { | |||
|       parentRefs: [], | ||||
|     }; | ||||
| 
 | ||||
|     // avoid mutating inner objects
 | ||||
|     if (receiver.properties !== undefined && typeof receiver.properties === 'object') { | ||||
|       receiver.properties = { ...receiver.properties }; | ||||
|     } | ||||
|     if (receiver.items !== undefined && typeof receiver.items === 'object') { | ||||
|       receiver.items = { ...receiver.items }; | ||||
|     } | ||||
| 
 | ||||
|     const allOfSchemas = schema.allOf.map(subSchema => { | ||||
|       const resolved = this.deref(subSchema, forceCircular); | ||||
|       const subRef = subSchema.$ref || undefined; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user