<commit_before>"""This module contains JSON schemas that can be used to validate
JSON request and response bodies between the various services in
the API management solution."""

#-------------------------------------------------------------------------------
"""```key_server_requent``` is a JSON schema used to validate
create credentials requests to the key server."""

key_server_create_creds_request = {
	"type" : "object",
	"properties" : {
		"owner": {
			"type": "string",
			"minLength": 1
		},
	},
	"required": [
		"owner",
	],
	"additionalProperties": False,
}

#-------------------------------------------------------------------------------
"""```key_server_response``` is a JSON schema used to validate
the key server's response to get creds request."""

key_server_get_creds_response = {
	"type" : "object",
	"properties" : {
		"is_deleted": {
			"type": "boolean"
		},
		"mac_algorithm": {
			"type": "string",
			"anyOf": [
				{"required":["hmac-sha-1"]},
				{"required":["hmac-sha-256"]},
			],
		},
		"mac_key": {
			"type": "string",
			"minLength": 1
		},
		"mac_key_identifier": {
			"type": "string",
			"minLength": 1
		},
		"owner": {
			"type": "string",
			"minLength": 1
		},
	},
	"required": [
		"is_deleted",
		"mac_algorithm",
		"mac_key",
		"mac_key_identifier",
		"owner",
	],
	"additionalProperties": False,<commit_msg>Fixing jsonschema definition describing the response from the key server when getting and creating credentials. Dave.<commit_after>"""This module contains JSON schemas that can be used to validate
JSON request and response bodies between the various services in
the API management solution."""

#-------------------------------------------------------------------------------
"""```key_server_requent``` is a JSON schema used to validate
create credentials requests to the key server."""

key_server_create_creds_request = {
	"type" : "object",
	"properties" : {
		"owner": {
			"type": "string",
			"minLength": 1
		},
	},
	"required": [
		"owner",
	],
	"additionalProperties": False,
}

#-------------------------------------------------------------------------------
"""```key_server_response``` is a JSON schema used to validate
the key server's response to get creds request."""

key_server_get_creds_response = {
	"type" : "object",
	"properties" : {
		"is_deleted": {
			"type": "boolean"
		},
		"mac_algorithm": {
			"type": "string",
			"enum": [
				"hmac-sha-1",
				"hmac-sha-256",
			],
		},
		"mac_key": {
			"type": "string",
			"minLength": 1
		},
		"mac_key_identifier": {
			"type": "string",
			"minLength": 1
		},
		"owner": {
			"type": "string",
			"minLength": 1
		},
	},
	"required": [
		"is_deleted",
		"mac_algorithm",
		"mac_key",
		"mac_key_identifier",
		"owner",
	],
	"additionalProperties": False,
{'fraction_non_alphanumeric': 0.2666187567373338, 'fraction_numerical': 0.005749191519942508, 'mean_word_length': 2.42014742014742, 'pattern_counts': {'":': 44, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6156273', 'n_tokens_mistral': 973, 'n_tokens_neox': 851, 'n_words': 224}