mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			506 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			506 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import { FromSchema } from 'json-schema-to-ts';
 | 
						|
 | 
						|
export const nameSchema = {
 | 
						|
    $id: '#/components/schemas/nameSchema',
 | 
						|
    type: 'object',
 | 
						|
    additionalProperties: false,
 | 
						|
    required: ['name'],
 | 
						|
    description: 'An object with a name',
 | 
						|
    properties: {
 | 
						|
        name: {
 | 
						|
            description: 'The name of the represented object.',
 | 
						|
            example: 'betaUser',
 | 
						|
            type: 'string',
 | 
						|
        },
 | 
						|
    },
 | 
						|
    components: {},
 | 
						|
} as const;
 | 
						|
 | 
						|
export type NameSchema = FromSchema<typeof nameSchema>;
 |