21 lines
		
	
	
		
			331 B
		
	
	
	
		
			Ruby
		
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			331 B
		
	
	
	
		
			Ruby
		
	
	
	
| class EmptyClass
 | |
| end
 | |
| 
 | |
| module GrapeSwagger
 | |
|   class EmptyModelParser
 | |
|     attr_reader :model
 | |
|     attr_reader :endpoint
 | |
| 
 | |
|     def initialize(model, endpoint)
 | |
|       @model = model
 | |
|       @endpoint = endpoint
 | |
|     end
 | |
| 
 | |
|     def call
 | |
|       {}
 | |
|     end
 | |
|   end
 | |
| end
 | |
| 
 | |
| GrapeSwagger.model_parsers.register(GrapeSwagger::EmptyModelParser, EmptyClass)
 |