Explorar el Código

fix json tags for infra type

Alexander Belanger hace 4 años
padre
commit
a09568b66c
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      api/types/infra.go

+ 4 - 4
api/types/infra.go

@@ -39,17 +39,17 @@ type Infra struct {
 	Status InfraStatus `json:"status"`
 
 	// The AWS integration that was used to create the infra
-	AWSIntegrationID uint
+	AWSIntegrationID uint `json:"aws_integration_id"`
 
 	// The GCP integration that was used to create the infra
-	GCPIntegrationID uint
+	GCPIntegrationID uint `json:"gcp_integration_id"`
 
 	// The DO integration that was used to create the infra:
 	// this points to an OAuthIntegrationID
-	DOIntegrationID uint
+	DOIntegrationID uint `json:"do_integration_id"`
 
 	// The last-applied, non-sensitive input variables to the provisioner. For now,
 	// this is a map[string]string since we marshal into env vars anyway, but
 	// eventually this config will be more complex.
-	LastApplied map[string]string
+	LastApplied map[string]string `json:"last_applied"`
 }