code: func (a *ActionDefinition) Finalize() {
  	// Inherit security scheme
  	if a.Security == nil {
  		a.Security = a.Parent.Security // ResourceDefinition
  		if a.Security == nil {
  			a.Security = Design.Security
  		}
  	}
  
  	if a.Security != nil && a.Security.Scheme.Kind == NoSecurityKind {
  		a.Security = nil
  	}
  
  	if a.Payload != nil {
  		a.Payload.Finalize()
  	}
  
  	a.mergeResponses()
  	a.initImplicitParams()
  	a.initQueryParams()
  }
docs: // Finalize inherits security scheme and action responses from parent and top level design.