mirror of
				https://github.com/Redocly/redoc.git
				synced 2025-10-31 15:57:30 +03:00 
			
		
		
		
	Fix required for JsonSchema component (fixes #28)
This commit is contained in:
		
							parent
							
								
									b054e62e0a
								
							
						
					
					
						commit
						3f698caabe
					
				|  | @ -59,8 +59,8 @@ export default class JsonSchema extends BaseComponent { | ||||||
|     this.pointer = schema._pointer || this.pointer; |     this.pointer = schema._pointer || this.pointer; | ||||||
| 
 | 
 | ||||||
|     this.requiredMap = {}; |     this.requiredMap = {}; | ||||||
|     if (this.schema.required) { |     if (this.componentSchema.required) { | ||||||
|       this.schema.required.forEach(prop => this.requiredMap[prop] = true); |       this.componentSchema.required.forEach(prop => this.requiredMap[prop] = true); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     if (!schema.properties) { |     if (!schema.properties) { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user