mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-03 20:36:07 +01:00 
			
		
		
		
	Separate generate swagger + fix sed os specific (#1791)
* Separate generate-swagger * Remove go generate rules * Add missing definition replacement + remove use of -i sed flag for compatibility with mac os default sed version. This is a little hacky a better solution could be use. * Use custom SED_INPLACE depending of platform detection * Use SED_INPLACE for swagger-ui also
This commit is contained in:
		@@ -2,10 +2,6 @@
 | 
			
		||||
// Use of this source code is governed by a MIT-style
 | 
			
		||||
// license that can be found in the LICENSE file.
 | 
			
		||||
 | 
			
		||||
//go:generate swagger generate spec -o ../../../public/swagger.v1.json
 | 
			
		||||
//go:generate sed -i "s;\".ref\": \"#/definitions/GPGKey\";\"type\": \"object\";g" ../../../public/swagger.v1.json
 | 
			
		||||
//go:generate sed -i "s;^          \".ref\": \"#/definitions/Repository\";          \"type\": \"object\";g" ../../../public/swagger.v1.json
 | 
			
		||||
 | 
			
		||||
// Package v1 Gitea API.
 | 
			
		||||
//
 | 
			
		||||
// This provide API interface to communicate with this Gitea instance.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user