mirror of
https://github.com/SamyRai/turash.git
synced 2025-12-26 23:01:33 +00:00
- Initialize git repository - Add comprehensive .gitignore for Go projects - Install golangci-lint v2.6.0 (latest v2) globally - Configure .golangci.yml with appropriate linters and formatters - Fix all formatting issues (gofmt) - Fix all errcheck issues (unchecked errors) - Adjust complexity threshold for validation functions - All checks passing: build, test, vet, lint
54 lines
1.5 KiB
JSON
54 lines
1.5 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://cityresourcegraph.com/schemas/business_registration.json",
|
|
"title": "Business Registration",
|
|
"description": "Schema for new business registration",
|
|
"type": "object",
|
|
"properties": {
|
|
"business": {
|
|
"$ref": "https://cityresourcegraph.com/schemas/business.json"
|
|
},
|
|
"initial_sites": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "https://cityresourcegraph.com/schemas/site.json"
|
|
},
|
|
"minItems": 1,
|
|
"description": "Initial sites to register"
|
|
},
|
|
"initial_resources": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "https://cityresourcegraph.com/schemas/resource_flow.json"
|
|
},
|
|
"description": "Initial resource flows to declare"
|
|
},
|
|
"consent": {
|
|
"type": "object",
|
|
"properties": {
|
|
"data_processing": {
|
|
"type": "boolean",
|
|
"const": true,
|
|
"description": "Consent for data processing"
|
|
},
|
|
"marketing_communications": {
|
|
"type": "boolean",
|
|
"description": "Consent for marketing communications"
|
|
},
|
|
"public_profile": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Allow public profile visibility"
|
|
}
|
|
},
|
|
"required": ["data_processing"]
|
|
},
|
|
"verification_token": {
|
|
"type": "string",
|
|
"description": "Email verification token"
|
|
}
|
|
},
|
|
"required": ["business", "initial_sites", "consent"],
|
|
"additionalProperties": false
|
|
}
|