diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0f35f1d..7f3516f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,7 +30,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/pkg-') defaults: run: - working-directory: "./reader/rust" + working-directory: "./crates/package" steps: - name: Checkout Code uses: actions/checkout@v5 @@ -69,7 +69,7 @@ jobs: - name: Build project run: cargo run bundle --path ../definitions --out ../bundles - working-directory: "./cli" + working-directory: "./crates/cli" - name: Archive definitions folder run: | @@ -94,7 +94,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/cli-') defaults: run: - working-directory: "./cli" + working-directory: "./crates/cli" steps: - name: Checkout Code uses: actions/checkout@v5 diff --git a/.gitignore b/.gitignore index 6796352..422ceb9 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ reader/ts/src/*.js reader/ts/build bundles -reader/**/*.js \ No newline at end of file +reader/**/*.js +*.d.ts \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index e1a4f76..2641a07 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -110,6 +110,12 @@ version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" +[[package]] +name = "autocfg" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" + [[package]] name = "axum" version = "0.8.4" @@ -227,6 +233,15 @@ version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2fd1289c04a9ea8cb22300a459a72a385d7c73d3259e2ed7dcb2af674838cfa9" +[[package]] +name = "chrono" +version = "0.4.42" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "145052bdd345b87320e369255277e3fb5152762ad123a901ef5c262dd38fe8d2" +dependencies = [ + "num-traits", +] + [[package]] name = "cipher" version = "0.4.4" @@ -239,9 +254,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.50" +version = "4.5.49" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c2cfd7bf8a6017ddaa4e32ffe7403d547790db06bd171c1c53926faab501623" +checksum = "f4512b90fa68d3a9932cea5184017c5d200f5921df706d45e853537dea51508f" dependencies = [ "clap_builder", "clap_derive", @@ -249,9 +264,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.50" +version = "4.5.49" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a4c05b9e80c5ccd3a7ef080ad7b6ba7d6fc00a985b8b157197075677c82c7a0" +checksum = "0025e98baa12e766c67ba13ff4695a887a1eba19569aad00a472546795bd6730" dependencies = [ "anstream", "anstyle", @@ -283,7 +298,6 @@ version = "0.0.0" dependencies = [ "bytes", "clap", - "code0-definition-reader 0.0.13", "colored", "futures", "notify", @@ -306,17 +320,6 @@ dependencies = [ "tucana", ] -[[package]] -name = "code0-definition-reader" -version = "0.0.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85d08bd4aad0f928b9f9731f174055e65b12f05ae49aa4c8e7f8e7d8e1b92211" -dependencies = [ - "serde", - "serde_json", - "tucana", -] - [[package]] name = "colorchoice" version = "1.0.4" @@ -1210,6 +1213,15 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + [[package]] name = "once_cell" version = "1.21.3" @@ -1277,6 +1289,43 @@ dependencies = [ "unicode-width", ] +[[package]] +name = "pbjson" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "898bac3fa00d0ba57a4e8289837e965baa2dee8c3749f3b11d45a64b4223d9c3" +dependencies = [ + "base64", + "serde", +] + +[[package]] +name = "pbjson-build" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af22d08a625a2213a78dbb0ffa253318c5c79ce3133d32d296655a7bdfb02095" +dependencies = [ + "heck", + "itertools", + "prost", + "prost-types", +] + +[[package]] +name = "pbjson-types" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e748e28374f10a330ee3bb9f29b828c0ac79831a32bab65015ad9b661ead526" +dependencies = [ + "bytes", + "chrono", + "pbjson", + "pbjson-build", + "prost", + "prost-build", + "serde", +] + [[package]] name = "pbkdf2" version = "0.12.2" @@ -2159,15 +2208,20 @@ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" [[package]] name = "tucana" -version = "0.0.37" +version = "0.0.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bcbe6f5486fad0e31b4411c53b867d1c1b4748ce14561080417dec1ff8722f54" +checksum = "be12e5db973a3df0aa336ec86ac0a6dbb47b186f317c9e4514b2b0f357c0c095" dependencies = [ + "pbjson", + "pbjson-build", + "pbjson-types", "prost", + "prost-build", "prost-types", "serde", "serde_json", "tonic", + "tonic-build", "tonic-prost", "tonic-prost-build", ] diff --git a/Cargo.toml b/Cargo.toml index b39880a..96b04c5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,15 +1,14 @@ [workspace] -members = ["cli", "reader/rust"] +members = ["crates/cli", "crates/package"] resolver = "3" [workspace.package] -version = "0.0.1" edition = "2024" [workspace.dependencies] serde = "1.0.219" serde_json = "1.0.140" -tucana = "0.0.37" +tucana = "0.0.38" clap = "4.5.41" colored = "3.0" tabled = "0.20" @@ -19,5 +18,4 @@ tokio = "1.47.0" futures = "0.3.31" zip = "6.0.0" bytes = "1.10.1" -prost = "0.14.1" -code0-definition-reader= "0.0.13" \ No newline at end of file +prost = "0.14.1" \ No newline at end of file diff --git a/cli/Cargo.toml b/crates/cli/Cargo.toml similarity index 88% rename from cli/Cargo.toml rename to crates/cli/Cargo.toml index 95ccdd3..2673c3e 100644 --- a/cli/Cargo.toml +++ b/crates/cli/Cargo.toml @@ -6,11 +6,10 @@ description = "The cli for managing the Code0-Definitions" repository = "https://github.com/code0-tech/code0-definitions" homepage = "https://code0.tech" license = "Apache-2.0" -readme = "../README.md" +readme = "../../README.md" [dependencies] clap = { workspace = true, features = ["derive"] } -code0-definition-reader = { workspace = true } tucana = { workspace = true } colored = { workspace = true } tabled = { workspace = true } @@ -22,4 +21,4 @@ tokio = { workspace = true, features = ["rt", "rt-multi-thread", "macros"] } futures = { workspace = true } zip = { workspace = true } bytes = { workspace = true } -prost = {workspace = true} \ No newline at end of file +prost = { workspace = true } \ No newline at end of file diff --git a/cli/src/analyser/diagnostics.rs b/crates/cli/src/analyser/diagnostics.rs similarity index 96% rename from cli/src/analyser/diagnostics.rs rename to crates/cli/src/analyser/diagnostics.rs index d5a3508..4bb964c 100644 --- a/cli/src/analyser/diagnostics.rs +++ b/crates/cli/src/analyser/diagnostics.rs @@ -1,5 +1,5 @@ use crate::formatter::{error, warning}; -use code0_definition_reader::reader::Meta; +use crate::parser::Meta; use std::cmp::PartialEq; use std::path::Path; use std::process::exit; @@ -66,13 +66,6 @@ impl Reporter { .filter(|p| p.kind.severity() == Severity::Warning) .collect() } - - pub fn get_debug(&self) -> Vec<&Diagnose> { - self.diagnose - .iter() - .filter(|p| p.kind.severity() == Severity::Debug) - .collect() - } } pub enum Severity { diff --git a/cli/src/analyser/mod.rs b/crates/cli/src/analyser/mod.rs similarity index 99% rename from cli/src/analyser/mod.rs rename to crates/cli/src/analyser/mod.rs index 52edf30..1bf63d9 100644 --- a/cli/src/analyser/mod.rs +++ b/crates/cli/src/analyser/mod.rs @@ -6,8 +6,8 @@ use crate::analyser::diagnostics::DiagnosticKind::{ UndefinedGenericKey, UndefinedTranslation, UnusedGenericKey, }; use crate::analyser::diagnostics::{Diagnose, DiagnosticKind, Reporter}; -use code0_definition_reader::parser::Parser; -use code0_definition_reader::reader::{Meta, MetaType, Reader}; +use crate::parser::Parser; +use crate::parser::{Meta, MetaType, Reader}; use tucana::shared::data_type_identifier::Type; use tucana::shared::definition_data_type_rule::Config; use tucana::shared::{DataTypeIdentifier, DefinitionDataType, FlowType, RuntimeFunctionDefinition}; diff --git a/cli/src/command/bundle.rs b/crates/cli/src/command/bundle.rs similarity index 91% rename from cli/src/command/bundle.rs rename to crates/cli/src/command/bundle.rs index 6ac29f9..fb3162a 100644 --- a/cli/src/command/bundle.rs +++ b/crates/cli/src/command/bundle.rs @@ -1,4 +1,4 @@ -use code0_definition_reader::parser::Parser; +use crate::parser::Parser; use prost::Message; use std::fs; use std::io::Write; @@ -23,7 +23,7 @@ pub fn bundle(path: Option, out: Option) { for feature in parser.features { feature.data_types.iter().for_each(|data_type| { let mut buf = Vec::new(); - if let Ok(_) = data_type.encode(&mut buf) { + if data_type.encode(&mut buf).is_ok() { let path = format!( "{}/{}_{}_{}.pb", &out_path, @@ -40,7 +40,7 @@ pub fn bundle(path: Option, out: Option) { feature.flow_types.iter().for_each(|flow_type| { let mut buf = Vec::new(); - if let Ok(_) = flow_type.encode(&mut buf) { + if flow_type.encode(&mut buf).is_ok() { let path = format!( "{}/{}_{}_{}.pb", &out_path, @@ -57,7 +57,7 @@ pub fn bundle(path: Option, out: Option) { feature.runtime_functions.iter().for_each(|function| { let mut buf = Vec::new(); - if let Ok(_) = function.encode(&mut buf) { + if function.encode(&mut buf).is_ok() { let path = format!( "{}/{}_{}_{}.pb", &out_path, diff --git a/cli/src/command/definition.rs b/crates/cli/src/command/definition.rs similarity index 96% rename from cli/src/command/definition.rs rename to crates/cli/src/command/definition.rs index cf52423..1b7d77b 100644 --- a/cli/src/command/definition.rs +++ b/crates/cli/src/command/definition.rs @@ -1,8 +1,6 @@ use crate::formatter::{info, success}; -use code0_definition_reader::parser::Parser; +use crate::parser::Parser; use colored::Colorize; -use prost::Message; -use tucana::shared::DefinitionDataType; pub fn search_definition(name: String, path: Option) { let dir_path = path.unwrap_or_else(|| "./definitions".to_string()); diff --git a/cli/src/command/download.rs b/crates/cli/src/command/download.rs similarity index 100% rename from cli/src/command/download.rs rename to crates/cli/src/command/download.rs diff --git a/cli/src/command/feature.rs b/crates/cli/src/command/feature.rs similarity index 97% rename from cli/src/command/feature.rs rename to crates/cli/src/command/feature.rs index 21b96ad..5ae1db5 100644 --- a/cli/src/command/feature.rs +++ b/crates/cli/src/command/feature.rs @@ -1,7 +1,7 @@ use crate::analyser::Analyser; use crate::formatter::{success, success_table}; +use crate::parser::{Feature, Parser}; use crate::table::{feature_table, summary_table}; -use code0_definition_reader::parser::{Feature, Parser}; pub fn search_feature(name: Option, path: Option) { let dir_path = path.unwrap_or_else(|| "./definitions".to_string()); diff --git a/cli/src/command/mod.rs b/crates/cli/src/command/mod.rs similarity index 100% rename from cli/src/command/mod.rs rename to crates/cli/src/command/mod.rs diff --git a/cli/src/command/report.rs b/crates/cli/src/command/report.rs similarity index 96% rename from cli/src/command/report.rs rename to crates/cli/src/command/report.rs index 88927e9..b476380 100644 --- a/cli/src/command/report.rs +++ b/crates/cli/src/command/report.rs @@ -1,7 +1,7 @@ use crate::analyser::Analyser; use crate::formatter::{success, success_table}; +use crate::parser::Parser; use crate::table::summary_table; -use code0_definition_reader::parser::Parser; pub fn report_errors(path: Option) { let dir_path = path.unwrap_or_else(|| "./definitions".to_string()); diff --git a/cli/src/command/watch.rs b/crates/cli/src/command/watch.rs similarity index 100% rename from cli/src/command/watch.rs rename to crates/cli/src/command/watch.rs diff --git a/cli/src/formatter.rs b/crates/cli/src/formatter.rs similarity index 64% rename from cli/src/formatter.rs rename to crates/cli/src/formatter.rs index 064ad84..29d22e2 100644 --- a/cli/src/formatter.rs +++ b/crates/cli/src/formatter.rs @@ -6,14 +6,6 @@ pub fn default(string: String) { println!("{}", string); } -pub fn default_table(iter: I) -where - I: IntoIterator, - T: Tabled, -{ - println!("{}", print_table(iter)); -} - pub fn success(string: String) { println!("\n{}: {}", "success".green(), string); } @@ -22,10 +14,6 @@ pub fn info(string: String) { println!("\n{}: {}", "info".blue(), string); } -pub fn success_highlight(highlight: String, string: String) { - println!("{} {}", highlight.green(), string); -} - pub fn success_table(iter: I) where I: IntoIterator, @@ -46,30 +34,10 @@ pub fn error_highlight(highlight: String, string: String) { println!("{} {}", highlight.red(), string); } -pub fn error_table(iter: I) -where - I: IntoIterator, - T: Tabled, -{ - println!("{}", print_table(iter).red()); -} - pub fn warning(string: String, path: &String) -> String { format!("\n{}: {} {}", "warning".yellow(), string, print_path(path)) } -pub fn warning_highlight(highlight: String, string: String) { - println!("{} {}", highlight.yellow(), string); -} - -pub fn warning_table(iter: I) -where - I: IntoIterator, - T: Tabled, -{ - println!("{}", print_table(iter).yellow()); -} - fn print_table(iter: I) -> String where I: IntoIterator, diff --git a/cli/src/main.rs b/crates/cli/src/main.rs similarity index 99% rename from cli/src/main.rs rename to crates/cli/src/main.rs index a4e185e..5fc12b9 100644 --- a/cli/src/main.rs +++ b/crates/cli/src/main.rs @@ -1,5 +1,7 @@ use clap::{Parser as ClapParser, Subcommand}; +pub mod parser; + mod analyser; mod command; mod formatter; diff --git a/reader/rust/src/reader.rs b/crates/cli/src/parser.rs similarity index 53% rename from reader/rust/src/reader.rs rename to crates/cli/src/parser.rs index a29338f..6883ed3 100644 --- a/reader/rust/src/reader.rs +++ b/crates/cli/src/parser.rs @@ -5,6 +5,128 @@ use std::{ io::Error, path::Path, }; +use tucana::shared::{DefinitionDataType, FlowType, RuntimeFunctionDefinition}; + +#[derive(Serialize, Clone, Debug)] +pub struct DefinitionError { + pub definition: String, + pub definition_type: MetaType, + pub error: String, +} + +#[derive(Debug)] +pub struct Parser { + pub features: Vec, +} + +#[derive(Serialize, Clone, Debug)] +pub struct Feature { + pub name: String, + pub data_types: Vec, + pub flow_types: Vec, + pub runtime_functions: Vec, + pub errors: Vec, +} + +impl Feature { + fn new(name: String) -> Self { + Feature { + name, + data_types: Vec::new(), + flow_types: Vec::new(), + runtime_functions: Vec::new(), + errors: Vec::new(), + } + } +} + +impl Parser { + pub fn from_path(path: &str) -> Option { + let reader = Reader::from_path(path)?; + + Some(Self::from_reader(reader)) + } + + pub fn from_reader(reader: Reader) -> Self { + let mut features: Vec = vec![]; + + for meta in &reader.meta { + let feature = features.iter_mut().find(|f| f.name == meta.name); + + if let Some(existing) = feature { + Parser::append_meta(existing, meta); + } else { + let mut new_feature = Feature::new(meta.name.clone()); + Parser::append_meta(&mut new_feature, meta); + features.push(new_feature); + } + } + + Parser { features } + } + + pub fn extract_identifier(definition: &str, meta_type: MetaType) -> String { + let field_name = match meta_type { + MetaType::DataType | MetaType::FlowType => "identifier", + MetaType::RuntimeFunction => "runtime_name", + }; + + // Look for the field pattern: "field_name": "value" or "field_name":"value" + if let Some(start) = definition.find(&format!("\"{field_name}\"")) { + // Find the colon after the field name + if let Some(colon_pos) = definition[start..].find(':') { + let after_colon = &definition[start + colon_pos + 1..]; + + // Skip whitespace and find the opening quote + let trimmed = after_colon.trim_start(); + if let Some(stripped) = trimmed.strip_prefix('"') { + // Find the closing quote + if let Some(end_quote) = stripped.find('"') { + return trimmed[1..end_quote + 1].to_string(); + } + } + } + } + + // Fallback: return the whole definition if identifier can't be extracted + definition.to_string() + } + + fn append_meta(feature: &mut Feature, meta: &Meta) { + let definition = meta.definition_string.as_str(); + match meta.r#type { + MetaType::DataType => match serde_json::from_str::(definition) { + Ok(data_type) => feature.data_types.push(data_type), + Err(err) => feature.errors.push(DefinitionError { + definition: Parser::extract_identifier(definition, MetaType::DataType), + definition_type: MetaType::DataType, + error: err.to_string(), + }), + }, + MetaType::FlowType => match serde_json::from_str::(definition) { + Ok(flow_type) => feature.flow_types.push(flow_type), + Err(err) => feature.errors.push(DefinitionError { + definition: Parser::extract_identifier(definition, MetaType::FlowType), + definition_type: MetaType::FlowType, + error: err.to_string(), + }), + }, + MetaType::RuntimeFunction => { + match serde_json::from_str::(definition) { + Ok(func) => feature.runtime_functions.push(func), + Err(err) => feature.errors.push(DefinitionError { + definition: Parser::extract_identifier( + definition, + MetaType::RuntimeFunction, + ), + definition_type: MetaType::RuntimeFunction, + error: err.to_string(), + }), + } + } + } + } +} #[derive(Serialize, Debug, Clone, Copy)] pub enum MetaType { diff --git a/cli/src/table.rs b/crates/cli/src/table.rs similarity index 78% rename from cli/src/table.rs rename to crates/cli/src/table.rs index 1bdb278..2a1763d 100644 --- a/cli/src/table.rs +++ b/crates/cli/src/table.rs @@ -1,4 +1,4 @@ -use code0_definition_reader::parser::Feature; +use crate::parser::Feature; use tabled::Tabled; use tucana::shared::{DefinitionDataType, FlowType, RuntimeFunctionDefinition}; @@ -26,18 +26,6 @@ pub struct RuntimeFunctionRow { runtime_name: String, } -#[derive(Tabled)] -pub struct ErrorRow { - #[tabled(rename = "#")] - index: usize, - #[tabled(rename = "Type")] - definition_type: String, - #[tabled(rename = "Definition")] - definition: String, - #[tabled(rename = "Error")] - error: String, -} - #[derive(Tabled)] pub struct FeatureSummaryRow { #[tabled(rename = "Feature")] @@ -50,20 +38,6 @@ pub struct FeatureSummaryRow { runtime_functions: usize, } -#[derive(Tabled)] -pub struct GeneralErrorRow { - #[tabled(rename = "#")] - index: usize, - #[tabled(rename = "Feature")] - feature_name: String, - #[tabled(rename = "Type")] - definition_type: String, - #[tabled(rename = "Definition")] - definition: String, - #[tabled(rename = "Error")] - error: String, -} - pub fn feature_table( feature: &Feature, ) -> (Vec, Vec, Vec) { diff --git a/reader/rust/Cargo.toml b/crates/package/Cargo.toml similarity index 92% rename from reader/rust/Cargo.toml rename to crates/package/Cargo.toml index 9bee954..c598b3f 100644 --- a/reader/rust/Cargo.toml +++ b/crates/package/Cargo.toml @@ -11,4 +11,4 @@ readme = "../../README.md" [dependencies] serde = { workspace = true } serde_json = { workspace = true } -tucana = { workspace = true } +tucana = { workspace = true } \ No newline at end of file diff --git a/crates/package/src/lib.rs b/crates/package/src/lib.rs new file mode 100644 index 0000000..a84d348 --- /dev/null +++ b/crates/package/src/lib.rs @@ -0,0 +1,300 @@ +pub mod package { + use serde::Serialize; + use std::io::ErrorKind; + use std::{ + fs::{self, DirEntry}, + io::Error, + path::Path, + }; + use tucana::shared::{DefinitionDataType, FlowType, RuntimeFunctionDefinition}; + + #[derive(Serialize, Clone, Debug)] + pub struct DefinitionError { + pub definition: String, + pub definition_type: MetaType, + pub error: String, + } + + #[derive(Debug)] + pub struct Parser { + pub features: Vec, + } + + #[derive(Serialize, Clone, Debug)] + pub struct Feature { + pub name: String, + pub data_types: Vec, + pub flow_types: Vec, + pub runtime_functions: Vec, + pub errors: Vec, + } + + impl Feature { + fn new(name: String) -> Self { + Feature { + name, + data_types: Vec::new(), + flow_types: Vec::new(), + runtime_functions: Vec::new(), + errors: Vec::new(), + } + } + } + + impl Parser { + pub fn from_path(path: &str) -> Option { + let reader = Reader::from_path(path)?; + + Some(Self::from_reader(reader)) + } + + pub fn from_reader(reader: Reader) -> Self { + let mut features: Vec = vec![]; + + for meta in &reader.meta { + let feature = features.iter_mut().find(|f| f.name == meta.name); + + if let Some(existing) = feature { + Parser::append_meta(existing, meta); + } else { + let mut new_feature = Feature::new(meta.name.clone()); + Parser::append_meta(&mut new_feature, meta); + features.push(new_feature); + } + } + + Parser { features } + } + + pub fn extract_identifier(definition: &str, meta_type: MetaType) -> String { + let field_name = match meta_type { + MetaType::DataType | MetaType::FlowType => "identifier", + MetaType::RuntimeFunction => "runtime_name", + }; + + // Look for the field pattern: "field_name": "value" or "field_name":"value" + if let Some(start) = definition.find(&format!("\"{field_name}\"")) { + // Find the colon after the field name + if let Some(colon_pos) = definition[start..].find(':') { + let after_colon = &definition[start + colon_pos + 1..]; + + // Skip whitespace and find the opening quote + let trimmed = after_colon.trim_start(); + if let Some(stripped) = trimmed.strip_prefix('"') { + // Find the closing quote + if let Some(end_quote) = stripped.find('"') { + return trimmed[1..end_quote + 1].to_string(); + } + } + } + } + + // Fallback: return the whole definition if identifier can't be extracted + definition.to_string() + } + + fn append_meta(feature: &mut Feature, meta: &Meta) { + let definition = meta.definition_string.as_str(); + match meta.r#type { + MetaType::DataType => { + match serde_json::from_str::(definition) { + Ok(data_type) => feature.data_types.push(data_type), + Err(err) => feature.errors.push(DefinitionError { + definition: Parser::extract_identifier(definition, MetaType::DataType), + definition_type: MetaType::DataType, + error: err.to_string(), + }), + } + } + MetaType::FlowType => match serde_json::from_str::(definition) { + Ok(flow_type) => feature.flow_types.push(flow_type), + Err(err) => feature.errors.push(DefinitionError { + definition: Parser::extract_identifier(definition, MetaType::FlowType), + definition_type: MetaType::FlowType, + error: err.to_string(), + }), + }, + MetaType::RuntimeFunction => { + match serde_json::from_str::(definition) { + Ok(func) => feature.runtime_functions.push(func), + Err(err) => feature.errors.push(DefinitionError { + definition: Parser::extract_identifier( + definition, + MetaType::RuntimeFunction, + ), + definition_type: MetaType::RuntimeFunction, + error: err.to_string(), + }), + } + } + } + } + } + + #[derive(Serialize, Debug, Clone, Copy)] + pub enum MetaType { + FlowType, + DataType, + RuntimeFunction, + } + + impl std::fmt::Display for MetaType { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + MetaType::FlowType => write!(f, "FlowType"), + MetaType::DataType => write!(f, "DataType"), + MetaType::RuntimeFunction => write!(f, "RuntimeFunction"), + } + } + } + + pub struct Reader { + pub meta: Vec, + } + + #[derive(Clone)] + pub struct Meta { + pub name: String, + pub r#type: MetaType, + pub definition_string: String, + pub path: String, + } + + impl Meta { + pub fn read_from_file

( + name: String, + r#type: MetaType, + file_path: P, + ) -> Result + where + P: AsRef, + { + let path = match file_path.as_ref().to_str() { + Some(path) => path, + None => return Err(Error::new(ErrorKind::InvalidInput, "Invalid path")), + }; + + if !path.ends_with("json") { + return Err(Error::new( + ErrorKind::InvalidInput, + format!( + "File {} does not end with .json", + file_path.as_ref().display() + ), + )); + } + + let content = match fs::read_to_string(&file_path) { + Ok(content) => content, + Err(err) => { + println!("Error reading file: {err}"); + return Err(err); + } + }; + + Ok(Meta { + name, + r#type, + definition_string: content, + path: path.to_string(), + }) + } + } + + /// Reader + /// + /// Expecting the file system to look like: + /// - + /// - + /// - + /// - + /// - + /// - + /// - + /// - + /// - + impl Reader { + pub fn from_path(path: &str) -> Option { + let mut result: Vec = vec![]; + + // Reading the path folder + for feature_path in fs::read_dir(path).unwrap() { + let feature_path_result = match feature_path { + Ok(path) => path, + Err(_) => continue, + }; + + let feature_name = match get_file_name(&feature_path_result) { + Some(file_name) => file_name, + None => continue, + }; + + // Reading the feature folder + for type_path in fs::read_dir(feature_path_result.path()).unwrap() { + let type_path_result = match type_path { + Ok(path) => path, + Err(_) => continue, + }; + + let meta_type = match get_file_name(&type_path_result) { + Some(name) => match name.as_str() { + "flow_type" => MetaType::FlowType, + "data_type" => MetaType::DataType, + "runtime_definition" => MetaType::RuntimeFunction, + _ => continue, + }, + None => continue, + }; + + // Reading the type folder + for definition_path in fs::read_dir(type_path_result.path()).unwrap() { + let definition_path_result = match definition_path { + Ok(path) => path, + Err(_) => continue, + }; + + if definition_path_result.file_type().unwrap().is_file() { + let meta = Meta::read_from_file( + feature_name.clone(), + meta_type, + definition_path_result.path(), + ); + + if let Ok(meta_result) = meta { + result.push(meta_result); + } + } else { + for sub_definition_path in + fs::read_dir(definition_path_result.path()).unwrap() + { + let sub_definition_path_result = match sub_definition_path { + Ok(path) => path, + Err(_) => continue, + }; + + let meta = Meta::read_from_file( + feature_name.clone(), + meta_type, + sub_definition_path_result.path(), + ); + + if let Ok(meta_result) = meta { + result.push(meta_result); + } + } + } + } + } + } + + Some(Reader { meta: result }) + } + } + + fn get_file_name(entry: &DirEntry) -> Option { + entry + .file_name() + .to_str() + .map(|file_name| file_name.to_string()) + } +} diff --git a/definitions/http/data_type/array/http_header_map.json b/definitions/http/data_type/array/http_header_map.json deleted file mode 100644 index caaf030..0000000 --- a/definitions/http/data_type/array/http_header_map.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "variant": 5, - "identifier": "HTTP_HEADER_MAP", - "name": [ - { - "code": "en-US", - "content": "HTTP Headers" - } - ], - "rules": [ - { - "config": { - "ParentType": { - "parent_type": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "DataTypeIdentifier": "HTTP_HEADER_ENTRY" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } - } - } - } - } - } - ], - "generic_keys": [] -} \ No newline at end of file diff --git a/definitions/http/data_type/array/http_header_map.proto.json b/definitions/http/data_type/array/http_header_map.proto.json new file mode 100644 index 0000000..b490ba3 --- /dev/null +++ b/definitions/http/data_type/array/http_header_map.proto.json @@ -0,0 +1,34 @@ +{ + "variant": "ARRAY", + "identifier": "HTTP_HEADER_MAP", + "name": [ + { + "code": "en-US", + "content": "HTTP Headers" + } + ], + "rules": [ + { + "parentType": { + "parentType": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "dataTypeIdentifier": "HTTP_HEADER_ENTRY" + } + ], + "target": "T", + "genericCombinations": [] + } + ] + } + } + } + } + ], + "genericKeys": [], + "version": null +} \ No newline at end of file diff --git a/definitions/http/data_type/object/http_header_entry.json b/definitions/http/data_type/object/http_header_entry.json deleted file mode 100644 index 48a164d..0000000 --- a/definitions/http/data_type/object/http_header_entry.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "variant": 3, - "identifier": "HTTP_HEADER_ENTRY", - "name": [ - { - "code": "en-US", - "content": "HTTP Header Entry" - } - ], - "rules": [ - { - "config": { - "ContainsKey": { - "key": "key", - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } - } - } - } - }, - { - "config": { - "ContainsKey": { - "key": "value", - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } - } - } - } - }, - { - "config": { - "ParentType": { - "parent_type": { - "type": { - "DataTypeIdentifier": "OBJECT" - } - } - } - } - } - ], - "generic_keys": [] -} \ No newline at end of file diff --git a/definitions/http/data_type/object/http_header_entry.proto.json b/definitions/http/data_type/object/http_header_entry.proto.json new file mode 100644 index 0000000..b25630e --- /dev/null +++ b/definitions/http/data_type/object/http_header_entry.proto.json @@ -0,0 +1,36 @@ +{ + "variant": "OBJECT", + "identifier": "HTTP_HEADER_ENTRY", + "name": [ + { + "code": "en-US", + "content": "HTTP Header Entry" + } + ], + "rules": [ + { + "containsKey": { + "key": "key", + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" + } + } + }, + { + "containsKey": { + "key": "value", + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" + } + } + }, + { + "parentType": { + "parentType": { + "dataTypeIdentifier": "OBJECT" + } + } + } + ], + "genericKeys": [] +} \ No newline at end of file diff --git a/definitions/http/data_type/object/http_request.json b/definitions/http/data_type/object/http_request.json deleted file mode 100644 index f4c1bbb..0000000 --- a/definitions/http/data_type/object/http_request.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "variant": 3, - "identifier": "HTTP_REQUEST", - "name": [ - { - "code": "en-US", - "content": "HTTP Request" - } - ], - "rules": [ - { - "config": { - "ContainsKey": { - "key": "method", - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "HTTP_METHOD" - } - } - } - } - }, - { - "config": { - "ContainsKey": { - "key": "url", - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "HTTP_URL" - } - } - } - } - }, - { - "config": { - "ContainsKey": { - "key": "body", - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "OBJECT" - } - } - } - } - }, - { - "config": { - "ContainsKey": { - "key": "headers", - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "HTTP_HEADER_MAP" - } - } - } - } - }, - { - "config": { - "ParentType": { - "parent_type": { - "type": { - "DataTypeIdentifier": "OBJECT" - } - } - } - } - } - ], - "generic_keys": [] -} \ No newline at end of file diff --git a/definitions/http/data_type/object/http_request.proto.json b/definitions/http/data_type/object/http_request.proto.json new file mode 100644 index 0000000..08c6fc1 --- /dev/null +++ b/definitions/http/data_type/object/http_request.proto.json @@ -0,0 +1,52 @@ +{ + "variant": "OBJECT", + "identifier": "HTTP_REQUEST", + "name": [ + { + "code": "en-US", + "content": "HTTP Request" + } + ], + "rules": [ + { + "containsKey": { + "key": "method", + "dataTypeIdentifier": { + "dataTypeIdentifier": "HTTP_METHOD" + } + } + }, + { + "containsKey": { + "key": "url", + "dataTypeIdentifier": { + "dataTypeIdentifier": "HTTP_URL" + } + } + }, + { + "containsKey": { + "key": "body", + "dataTypeIdentifier": { + "dataTypeIdentifier": "OBJECT" + } + } + }, + { + "containsKey": { + "key": "headers", + "dataTypeIdentifier": { + "dataTypeIdentifier": "HTTP_HEADER_MAP" + } + } + }, + { + "parentType": { + "parentType": { + "dataTypeIdentifier": "OBJECT" + } + } + } + ], + "genericKeys": [] +} \ No newline at end of file diff --git a/definitions/http/data_type/object/http_response.json b/definitions/http/data_type/object/http_response.json deleted file mode 100644 index 7aee05b..0000000 --- a/definitions/http/data_type/object/http_response.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "variant": 3, - "identifier": "HTTP_RESPONSE", - "name": [ - { - "code": "en-US", - "content": "HTTP Response" - } - ], - "rules": [ - { - "config": { - "ContainsKey": { - "key": "headers", - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "HTTP_HEADER_MAP" - } - } - } - } - }, - { - "config": { - "ContainsKey": { - "key": "body", - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "OBJECT" - } - } - } - } - }, - { - "config": { - "ParentType": { - "parent_type": { - "type": { - "DataTypeIdentifier": "OBJECT" - } - } - } - } - } - ], - "generic_keys": [] -} \ No newline at end of file diff --git a/definitions/http/data_type/object/http_response.proto.json b/definitions/http/data_type/object/http_response.proto.json new file mode 100644 index 0000000..61a3f2d --- /dev/null +++ b/definitions/http/data_type/object/http_response.proto.json @@ -0,0 +1,36 @@ +{ + "variant": "OBJECT", + "identifier": "HTTP_RESPONSE", + "name": [ + { + "code": "en-US", + "content": "HTTP Response" + } + ], + "rules": [ + { + "containsKey": { + "key": "headers", + "dataTypeIdentifier": { + "dataTypeIdentifier": "HTTP_HEADER_MAP" + } + } + }, + { + "containsKey": { + "key": "body", + "dataTypeIdentifier": { + "dataTypeIdentifier": "OBJECT" + } + } + }, + { + "parentType": { + "parentType": { + "dataTypeIdentifier": "OBJECT" + } + } + } + ], + "genericKeys": [] +} \ No newline at end of file diff --git a/definitions/http/data_type/type/http_method.json b/definitions/http/data_type/type/http_method.json deleted file mode 100644 index c300716..0000000 --- a/definitions/http/data_type/type/http_method.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "variant": 2, - "identifier": "HTTP_METHOD", - "name": [ - { - "code": "en-US", - "content": "HTTP Method" - } - ], - "rules": [ - { - "config": { - "ItemOfCollection": { - "items": [ - { - "kind": { - "StringValue": "GET" - } - }, - { - "kind": { - "StringValue": "POST" - } - }, - { - "kind": { - "StringValue": "PUT" - } - }, - { - "kind": { - "StringValue": "DELETE" - } - }, - { - "kind": { - "StringValue": "PATCH" - } - }, - { - "kind": { - "StringValue": "HEAD" - } - } - ] - } - } - } - ], - "generic_keys": [] -} \ No newline at end of file diff --git a/definitions/http/data_type/type/http_method.proto.json b/definitions/http/data_type/type/http_method.proto.json new file mode 100644 index 0000000..621bd49 --- /dev/null +++ b/definitions/http/data_type/type/http_method.proto.json @@ -0,0 +1,37 @@ +{ + "variant": "TYPE", + "identifier": "HTTP_METHOD", + "name": [ + { + "code": "en-US", + "content": "HTTP Method" + } + ], + "rules": [ + { + "itemOfCollection": { + "items": [ + { + "stringValue": "GET" + }, + { + "stringValue": "POST" + }, + { + "stringValue": "PUT" + }, + { + "stringValue": "DELETE" + }, + { + "stringValue": "PATCH" + }, + { + "stringValue": "HEAD" + } + ] + } + } + ], + "genericKeys": [] +} \ No newline at end of file diff --git a/definitions/http/data_type/type/http_status_code.json b/definitions/http/data_type/type/http_status_code.proto.json similarity index 55% rename from definitions/http/data_type/type/http_status_code.json rename to definitions/http/data_type/type/http_status_code.proto.json index 0efc379..5434989 100644 --- a/definitions/http/data_type/type/http_status_code.json +++ b/definitions/http/data_type/type/http_status_code.proto.json @@ -1,5 +1,5 @@ { - "variant": 2, + "variant": "TYPE", "identifier": "HTTP_STATUS_CODE", "name": [ { @@ -9,13 +9,11 @@ ], "rules": [ { - "config": { - "NumberRange": { - "from": 100, - "to": 599 - } + "numberRange": { + "from": 100, + "to": 599 } } ], - "generic_keys": [] + "genericKeys": [] } \ No newline at end of file diff --git a/definitions/http/data_type/type/http_url.json b/definitions/http/data_type/type/http_url.json deleted file mode 100644 index 9206d18..0000000 --- a/definitions/http/data_type/type/http_url.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "variant": 2, - "identifier": "HTTP_URL", - "name": [ - { - "code": "en-US", - "content": "HTTP Route" - } - ], - "rules": [ - { - "config": { - "Regex": { - "pattern": "/^/\\w+(?:[.:~-]\\w+)*(?:/\\w+(?:[.:~-]\\w+)*)*$/" - } - } - } - ], - "generic_keys": [] -} \ No newline at end of file diff --git a/definitions/http/data_type/type/http_url.proto.json b/definitions/http/data_type/type/http_url.proto.json new file mode 100644 index 0000000..0671709 --- /dev/null +++ b/definitions/http/data_type/type/http_url.proto.json @@ -0,0 +1,18 @@ +{ + "variant": "TYPE", + "identifier": "HTTP_URL", + "name": [ + { + "code": "en-US", + "content": "HTTP Route" + } + ], + "rules": [ + { + "regex": { + "pattern": "/^/\\w+(?:[.:~-]\\w+)*(?:/\\w+(?:[.:~-]\\w+)*)*$/" + } + } + ], + "genericKeys": [] +} \ No newline at end of file diff --git a/definitions/http/flow_type/http.json b/definitions/http/flow_type/http.proto.json similarity index 83% rename from definitions/http/flow_type/http.json rename to definitions/http/flow_type/http.proto.json index 0ececf3..23faf37 100644 --- a/definitions/http/flow_type/http.json +++ b/definitions/http/flow_type/http.proto.json @@ -4,8 +4,8 @@ { "identifier": "HTTP_URL", "unique": false, - "data_type_identifier": "HTTP_URL", - "default_value": null, + "dataTypeIdentifier": "HTTP_URL", + "defaultValue": null, "name": [ { "code": "en-US", @@ -22,8 +22,8 @@ { "identifier": "HTTP_METHOD", "unique": false, - "data_type_identifier": "HTTP_METHOD", - "default_value": null, + "dataTypeIdentifier": "HTTP_METHOD", + "defaultValue": null, "name": [ { "code": "en-US", @@ -40,8 +40,8 @@ { "identifier": "HTTP_HOST", "unique": false, - "data_type_identifier": "TEXT", - "default_value": null, + "dataTypeIdentifier": "TEXT", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,8 +56,8 @@ ] } ], - "input_type_identifier": "HTTP_REQUEST", - "return_type_identifier": "HTTP_RESPONSE", + "inputTypeIdentifier": "HTTP_REQUEST", + "returnTypeIdentifier": "HTTP_RESPONSE", "editable": false, "name": [ { @@ -76,5 +76,6 @@ "code": "en-US", "content": "A REST API is a web service that lets clients interact with data on a server using standard HTTP methods like GET, POST, PUT, and DELETE usually returning results in JSON format." } - ] + ], + "version": null } \ No newline at end of file diff --git a/definitions/http/runtime_definition/control/http_control_respond.json b/definitions/http/runtime_definition/control/http_control_respond.proto.json similarity index 75% rename from definitions/http/runtime_definition/control/http_control_respond.json rename to definitions/http/runtime_definition/control/http_control_respond.proto.json index d2dc88f..1e68c1a 100644 --- a/definitions/http/runtime_definition/control/http_control_respond.json +++ b/definitions/http/runtime_definition/control/http_control_respond.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "http::control::respond", - "runtime_parameter_definitions": [ + "runtimeName": "http::control::respond", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "HTTP_RESPONSE" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "HTTP_RESPONSE" }, - "runtime_name": "http_response", - "default_value": null, + "runtimeName": "http_response", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,8 +27,8 @@ ] } ], - "return_type_identifier": null, - "deprecation_message": [], + "returnTypeIdentifier": null, + "deprecationMessage": [], "name": [ { "code": "en-US", @@ -49,6 +47,6 @@ "content": "Processes an HTTP response and returns it to the requesting client. This function typically completes the HTTP request–response cycle by delivering the server’s final output, such as headers, status codes, and body content, back to the client." } ], - "throws_error": false, - "generic_keys": [] -} + "throwsError": false, + "genericKeys": [] +} \ No newline at end of file diff --git a/definitions/http/runtime_definition/request/http_request_create.json b/definitions/http/runtime_definition/request/http_request_create.proto.json similarity index 74% rename from definitions/http/runtime_definition/request/http_request_create.json rename to definitions/http/runtime_definition/request/http_request_create.proto.json index 6ee8056..000a1ba 100644 --- a/definitions/http/runtime_definition/request/http_request_create.json +++ b/definitions/http/runtime_definition/request/http_request_create.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "http::request::create", - "runtime_parameter_definitions": [ + "runtimeName": "http::request::create", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "HTTP_METHOD" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "HTTP_METHOD" }, - "runtime_name": "http_method", - "default_value": null, + "runtimeName": "http_method", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "HTTP_HEADER_MAP" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "HTTP_HEADER_MAP" }, - "runtime_name": "headers", - "default_value": null, + "runtimeName": "headers", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "HTTP_URL" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "HTTP_URL" }, - "runtime_name": "url", - "default_value": null, + "runtimeName": "url", + "defaultValue": null, "name": [ { "code": "en-US", @@ -83,13 +77,11 @@ ] }, { - "data_type_identifier": { - "type": { - "GenericKey": "P" - } + "dataTypeIdentifier": { + "genericKey": "P" }, - "runtime_name": "payload", - "default_value": null, + "runtimeName": "payload", + "defaultValue": null, "name": [ { "code": "en-US", @@ -110,13 +102,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "HTTP_REQUEST" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "HTTP_REQUEST" }, - "throws_error": false, - "generic_keys": [ + "throwsError": false, + "genericKeys": [ "P" ], "name": [ @@ -137,5 +127,5 @@ "content": "Generates an HTTP request object that can be sent to a server. The request includes an HTTP method, optional headers, a destination URL, and an optional request body." } ], - "deprecation_message": [] -} + "deprecationMessage": [] +} \ No newline at end of file diff --git a/definitions/http/runtime_definition/response/http_response_create.json b/definitions/http/runtime_definition/response/http_response_create.proto.json similarity index 74% rename from definitions/http/runtime_definition/response/http_response_create.json rename to definitions/http/runtime_definition/response/http_response_create.proto.json index 4318208..07a8890 100644 --- a/definitions/http/runtime_definition/response/http_response_create.json +++ b/definitions/http/runtime_definition/response/http_response_create.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "http::response::create", - "runtime_parameter_definitions": [ + "runtimeName": "http::response::create", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "HTTP_STATUS_CODE" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "HTTP_STATUS_CODE" }, - "runtime_name": "http_status_code", - "default_value": null, + "runtimeName": "http_status_code", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "HTTP_HEADER_MAP" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "HTTP_HEADER_MAP" }, - "runtime_name": "headers", - "default_value": null, + "runtimeName": "headers", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] }, { - "data_type_identifier": { - "type": { - "GenericKey": "P" - } + "dataTypeIdentifier": { + "genericKey": "P" }, - "runtime_name": "payload", - "default_value": null, + "runtimeName": "payload", + "defaultValue": null, "name": [ { "code": "en-US", @@ -83,13 +77,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "HTTP_RESPONSE" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "HTTP_RESPONSE" }, - "throws_error": false, - "generic_keys": [ + "throwsError": false, + "genericKeys": [ "P" ], "name": [ @@ -110,5 +102,5 @@ "content": "Creates a complete HTTP response object to be returned from a server. The response includes a status code, headers, and an optional body containing the response content." } ], - "deprecation_message": [] -} + "deprecationMessage": [] +} \ No newline at end of file diff --git a/definitions/standard/data_type/array/array.json b/definitions/standard/data_type/array/array.json deleted file mode 100644 index d9f3929..0000000 --- a/definitions/standard/data_type/array/array.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "variant": 5, - "identifier": "ARRAY", - "name": [ - { - "code": "en-US", - "content": "Generic Array" - } - ], - "rules": [ - { - "config": { - "ContainsType": { - "data_type_identifier": { - "type": { - "GenericKey": "T" - } - } - } - } - } - ], - "generic_keys": [ - "T" - ] -} \ No newline at end of file diff --git a/definitions/standard/data_type/array/array.proto.json b/definitions/standard/data_type/array/array.proto.json new file mode 100644 index 0000000..742248a --- /dev/null +++ b/definitions/standard/data_type/array/array.proto.json @@ -0,0 +1,22 @@ +{ + "variant": "ARRAY", + "identifier": "ARRAY", + "name": [ + { + "code": "en-US", + "content": "Generic Array" + } + ], + "rules": [ + { + "containsType": { + "dataTypeIdentifier": { + "genericKey": "T" + } + } + } + ], + "genericKeys": [ + "T" + ] +} \ No newline at end of file diff --git a/definitions/standard/data_type/node/comparator.json b/definitions/standard/data_type/node/comparator.json deleted file mode 100644 index a8bc7bb..0000000 --- a/definitions/standard/data_type/node/comparator.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "variant": 7, - "identifier": "COMPARATOR", - "name": [ - { - "code": "en-US", - "content": "Comparator" - } - ], - "rules": [ - { - "config": { - "ReturnType": { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } - } - } - } - }, - { - "config": { - "InputTypes": { - "input_types": [ - { - "data_type_identifier": { - "type": { - "GenericKey": "I" - } - }, - "input_identifier": "left" - }, - { - "data_type_identifier": { - "type": { - "GenericKey": "I" - } - }, - "input_identifier": "right" - } - ] - } - } - } - ], - "generic_keys": [ - "I" - ] -} \ No newline at end of file diff --git a/definitions/standard/data_type/node/comparator.proto.json b/definitions/standard/data_type/node/comparator.proto.json new file mode 100644 index 0000000..7998332 --- /dev/null +++ b/definitions/standard/data_type/node/comparator.proto.json @@ -0,0 +1,40 @@ +{ + "variant": "NODE", + "identifier": "COMPARATOR", + "name": [ + { + "code": "en-US", + "content": "Comparator" + } + ], + "rules": [ + { + "returnType": { + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" + } + } + }, + { + "inputTypes": { + "inputTypes": [ + { + "dataTypeIdentifier": { + "genericKey": "I" + }, + "inputIdentifier": "left" + }, + { + "dataTypeIdentifier": { + "genericKey": "I" + }, + "inputIdentifier": "right" + } + ] + } + } + ], + "genericKeys": [ + "I" + ] +} \ No newline at end of file diff --git a/definitions/standard/data_type/node/consumer.json b/definitions/standard/data_type/node/consumer.json deleted file mode 100644 index a8457df..0000000 --- a/definitions/standard/data_type/node/consumer.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "variant": 7, - "identifier": "CONSUMER", - "name": [ - { - "code": "en-US", - "content": "Consumer" - } - ], - "rules": [ - { - "config": { - "InputTypes": { - "input_types": [ - { - "data_type_identifier": { - "type": { - "GenericKey": "T" - } - }, - "input_identifier": "consumer" - } - ] - } - } - } - ], - "generic_keys": [ - "T" - ] -} \ No newline at end of file diff --git a/definitions/standard/data_type/node/consumer.proto.json b/definitions/standard/data_type/node/consumer.proto.json new file mode 100644 index 0000000..4dbed35 --- /dev/null +++ b/definitions/standard/data_type/node/consumer.proto.json @@ -0,0 +1,27 @@ +{ + "variant": "NODE", + "identifier": "CONSUMER", + "name": [ + { + "code": "en-US", + "content": "Consumer" + } + ], + "rules": [ + { + "inputTypes": { + "inputTypes": [ + { + "dataTypeIdentifier": { + "genericKey": "T" + }, + "inputIdentifier": "consumer" + } + ] + } + } + ], + "genericKeys": [ + "T" + ] +} \ No newline at end of file diff --git a/definitions/standard/data_type/node/predicate.json b/definitions/standard/data_type/node/predicate.json deleted file mode 100644 index 91e9807..0000000 --- a/definitions/standard/data_type/node/predicate.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "variant": 7, - "identifier": "PREDICATE", - "name": [ - { - "code": "en-US", - "content": "Predicate" - } - ], - "rules": [ - { - "config": { - "ReturnType": { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "BOOLEAN" - } - } - } - } - }, - { - "config": { - "InputTypes": { - "input_types": [ - { - "data_type_identifier": { - "type": { - "GenericKey": "T" - } - }, - "input_identifier": "predicate" - } - ] - } - } - } - ], - "generic_keys": [ - "T" - ] -} \ No newline at end of file diff --git a/definitions/standard/data_type/node/predicate.proto.json b/definitions/standard/data_type/node/predicate.proto.json new file mode 100644 index 0000000..16e3dba --- /dev/null +++ b/definitions/standard/data_type/node/predicate.proto.json @@ -0,0 +1,34 @@ +{ + "variant": "NODE", + "identifier": "PREDICATE", + "name": [ + { + "code": "en-US", + "content": "Predicate" + } + ], + "rules": [ + { + "returnType": { + "dataTypeIdentifier": { + "dataTypeIdentifier": "BOOLEAN" + } + } + }, + { + "inputTypes": { + "inputTypes": [ + { + "dataTypeIdentifier": { + "genericKey": "T" + }, + "inputIdentifier": "predicate" + } + ] + } + } + ], + "genericKeys": [ + "T" + ] +} \ No newline at end of file diff --git a/definitions/standard/data_type/node/transform.json b/definitions/standard/data_type/node/transform.json deleted file mode 100644 index 69e0241..0000000 --- a/definitions/standard/data_type/node/transform.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "variant": 7, - "identifier": "TRANSFORM", - "name": [ - { - "code": "en-US", - "content": "Transform" - } - ], - "rules": [ - { - "config": { - "ReturnType": { - "data_type_identifier": { - "type": { - "GenericKey": "R" - } - } - } - } - }, - { - "config": { - "InputTypes": { - "input_types": [ - { - "data_type_identifier": { - "type": { - "GenericKey": "I" - } - }, - "input_identifier": "transform" - } - ] - } - } - } - ], - "generic_keys": [ - "I", - "R" - ] -} \ No newline at end of file diff --git a/definitions/standard/data_type/node/transform.proto.json b/definitions/standard/data_type/node/transform.proto.json new file mode 100644 index 0000000..c66db1b --- /dev/null +++ b/definitions/standard/data_type/node/transform.proto.json @@ -0,0 +1,35 @@ +{ + "variant": "NODE", + "identifier": "TRANSFORM", + "name": [ + { + "code": "en-US", + "content": "Transform" + } + ], + "rules": [ + { + "returnType": { + "dataTypeIdentifier": { + "genericKey": "R" + } + } + }, + { + "inputTypes": { + "inputTypes": [ + { + "dataTypeIdentifier": { + "genericKey": "I" + }, + "inputIdentifier": "transform" + } + ] + } + } + ], + "genericKeys": [ + "I", + "R" + ] +} \ No newline at end of file diff --git a/definitions/standard/data_type/object/object.json b/definitions/standard/data_type/object/object.proto.json similarity index 74% rename from definitions/standard/data_type/object/object.json rename to definitions/standard/data_type/object/object.proto.json index 1f27e1f..1df9d47 100644 --- a/definitions/standard/data_type/object/object.json +++ b/definitions/standard/data_type/object/object.proto.json @@ -1,5 +1,5 @@ { - "variant": 2, + "variant": "TYPE", "identifier": "OBJECT", "name": [ { @@ -8,5 +8,5 @@ } ], "rules": [], - "generic_keys": [] + "genericKeys": [] } \ No newline at end of file diff --git a/definitions/standard/data_type/primitive/boolean.json b/definitions/standard/data_type/primitive/boolean.proto.json similarity index 54% rename from definitions/standard/data_type/primitive/boolean.json rename to definitions/standard/data_type/primitive/boolean.proto.json index 6989cad..0af3072 100644 --- a/definitions/standard/data_type/primitive/boolean.json +++ b/definitions/standard/data_type/primitive/boolean.proto.json @@ -1,5 +1,5 @@ { - "variant": 1, + "variant": "PRIMITIVE", "identifier": "BOOLEAN", "name": [ { @@ -9,12 +9,10 @@ ], "rules": [ { - "config": { - "Regex": { - "pattern": "^(true|false)$" - } + "regex": { + "pattern": "^(true|false)$" } } ], - "generic_keys": [] + "genericKeys": [] } \ No newline at end of file diff --git a/definitions/standard/data_type/primitive/number.json b/definitions/standard/data_type/primitive/number.json deleted file mode 100644 index 6a6b9ac..0000000 --- a/definitions/standard/data_type/primitive/number.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "variant": 1, - "identifier": "NUMBER", - "name": [ - { - "code": "en-US", - "content": "Number" - } - ], - "rules": [ - { - "config": { - "Regex": { - "pattern": "/^(?:-(?:[1-9](?:\\d{0,2}(?:,\\d{3})+|\\d*))|(?:0|(?:[1-9](?:\\d{0,2}(?:,\\d{3})+|\\d*))))(?:.\\d+|)$/" - } - } - } - ], - "generic_keys": [] -} \ No newline at end of file diff --git a/definitions/standard/data_type/primitive/number.proto.json b/definitions/standard/data_type/primitive/number.proto.json new file mode 100644 index 0000000..460ef1e --- /dev/null +++ b/definitions/standard/data_type/primitive/number.proto.json @@ -0,0 +1,18 @@ +{ + "variant": "PRIMITIVE", + "identifier": "NUMBER", + "name": [ + { + "code": "en-US", + "content": "Number" + } + ], + "rules": [ + { + "regex": { + "pattern": "/^(?:-(?:[1-9](?:\\d{0,2}(?:,\\d{3})+|\\d*))|(?:0|(?:[1-9](?:\\d{0,2}(?:,\\d{3})+|\\d*))))(?:.\\d+|)$/" + } + } + ], + "genericKeys": [] +} \ No newline at end of file diff --git a/definitions/standard/data_type/primitive/text.json b/definitions/standard/data_type/primitive/text.proto.json similarity index 54% rename from definitions/standard/data_type/primitive/text.json rename to definitions/standard/data_type/primitive/text.proto.json index 251c69d..ce40a19 100644 --- a/definitions/standard/data_type/primitive/text.json +++ b/definitions/standard/data_type/primitive/text.proto.json @@ -1,5 +1,5 @@ { - "variant": 1, + "variant": "PRIMITIVE", "identifier": "TEXT", "name": [ { @@ -9,12 +9,10 @@ ], "rules": [ { - "config": { - "Regex": { - "pattern": "[\\s\\S]*" - } + "regex": { + "pattern": "[\\s\\S]*" } } ], - "generic_keys": [] + "genericKeys": [] } \ No newline at end of file diff --git a/definitions/standard/data_type/type/text_encoding.json b/definitions/standard/data_type/type/text_encoding.json deleted file mode 100644 index 14bcb43..0000000 --- a/definitions/standard/data_type/type/text_encoding.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "variant": 2, - "identifier": "TEXT_ENCODING", - "name": [ - { - "code": "en-US", - "content": "Text Encoding" - } - ], - "rules": [ - { - "config": { - "ItemOfCollection": { - "items": [ - { - "kind": { - "StringValue": "BASE64" - } - } - ] - } - } - } - ], - "generic_keys": [] -} \ No newline at end of file diff --git a/definitions/standard/data_type/type/text_encoding.proto.json b/definitions/standard/data_type/type/text_encoding.proto.json new file mode 100644 index 0000000..1d829b2 --- /dev/null +++ b/definitions/standard/data_type/type/text_encoding.proto.json @@ -0,0 +1,22 @@ +{ + "variant": "TYPE", + "identifier": "TEXT_ENCODING", + "name": [ + { + "code": "en-US", + "content": "Text Encoding" + } + ], + "rules": [ + { + "itemOfCollection": { + "items": [ + { + "stringValue": "BASE64" + } + ] + } + } + ], + "genericKeys": [] +} \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_at.json b/definitions/standard/runtime_definition/array/std_array_at.proto.json similarity index 60% rename from definitions/standard/runtime_definition/array/std_array_at.json rename to definitions/standard/runtime_definition/array/std_array_at.proto.json index d390d5c..edca3f7 100644 --- a/definitions/standard/runtime_definition/array/std_array_at.json +++ b/definitions/standard/runtime_definition/array/std_array_at.proto.json @@ -1,29 +1,25 @@ { - "runtime_name": "std::array::at", - "runtime_parameter_definitions": [ + "runtimeName": "std::array::at", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] } }, - "runtime_name": "array", - "default_value": null, + "runtimeName": "array", + "defaultValue": null, "name": [ { "code": "en-US", @@ -44,13 +40,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "index", - "default_value": null, + "runtimeName": "index", + "defaultValue": null, "name": [ { "code": "en-US", @@ -71,13 +65,11 @@ ] } ], - "return_type_identifier": { - "type": { - "GenericKey": "R" - } + "returnTypeIdentifier": { + "genericKey": "R" }, - "throws_error": false, - "generic_keys": [ + "throwsError": false, + "genericKeys": [ "R" ], "name": [ @@ -98,5 +90,5 @@ "content": "Returns the element located at the given zero-based index within the input array." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_concat.json b/definitions/standard/runtime_definition/array/std_array_concat.json deleted file mode 100644 index 87c378f..0000000 --- a/definitions/standard/runtime_definition/array/std_array_concat.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "runtime_name": "std::array::concat", - "runtime_parameter_definitions": [ - { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } - } - }, - "runtime_name": "first", - "default_value": null, - "name": [ - { - "code": "en-US", - "content": "First Array" - } - ], - "description": [ - { - "code": "en-US", - "content": "The first array to concatenate." - } - ], - "documentation": [ - { - "code": "en-US", - "content": "The first input array whose elements will appear at the beginning of the resulting array." - } - ] - }, - { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } - } - }, - "runtime_name": "second", - "default_value": null, - "name": [ - { - "code": "en-US", - "content": "Second Array" - } - ], - "description": [ - { - "code": "en-US", - "content": "The second array to concatenate." - } - ], - "documentation": [ - { - "code": "en-US", - "content": "The second input array whose elements will be appended after the elements of the first array." - } - ] - } - ], - "return_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } - } - }, - "throws_error": false, - "generic_keys": [ - "R" - ], - "name": [ - { - "code": "en-US", - "content": "Concatenate Arrays" - } - ], - "description": [ - { - "code": "en-US", - "content": "Concatenates two arrays into a single array." - } - ], - "documentation": [ - { - "code": "en-US", - "content": "Returns a new array containing all elements of the first array followed by all elements of the second array." - } - ], - "deprecation_message": [] -} \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_concat.proto.json b/definitions/standard/runtime_definition/array/std_array_concat.proto.json new file mode 100644 index 0000000..e4ef94e --- /dev/null +++ b/definitions/standard/runtime_definition/array/std_array_concat.proto.json @@ -0,0 +1,120 @@ +{ + "runtimeName": "std::array::concat", + "runtimeParameterDefinitions": [ + { + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] + } + }, + "runtimeName": "first", + "defaultValue": null, + "name": [ + { + "code": "en-US", + "content": "First Array" + } + ], + "description": [ + { + "code": "en-US", + "content": "The first array to concatenate." + } + ], + "documentation": [ + { + "code": "en-US", + "content": "The first input array whose elements will appear at the beginning of the resulting array." + } + ] + }, + { + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] + } + }, + "runtimeName": "second", + "defaultValue": null, + "name": [ + { + "code": "en-US", + "content": "Second Array" + } + ], + "description": [ + { + "code": "en-US", + "content": "The second array to concatenate." + } + ], + "documentation": [ + { + "code": "en-US", + "content": "The second input array whose elements will be appended after the elements of the first array." + } + ] + } + ], + "returnTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] + } + }, + "throwsError": false, + "genericKeys": [ + "R" + ], + "name": [ + { + "code": "en-US", + "content": "Concatenate Arrays" + } + ], + "description": [ + { + "code": "en-US", + "content": "Concatenates two arrays into a single array." + } + ], + "documentation": [ + { + "code": "en-US", + "content": "Returns a new array containing all elements of the first array followed by all elements of the second array." + } + ], + "deprecationMessage": [] +} \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_filter.json b/definitions/standard/runtime_definition/array/std_array_filter.json deleted file mode 100644 index 0458aea..0000000 --- a/definitions/standard/runtime_definition/array/std_array_filter.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "runtime_name": "std::array::filter", - "runtime_parameter_definitions": [ - { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } - } - }, - "runtime_name": "array", - "default_value": null, - "name": [ - { - "code": "en-US", - "content": "Input Array" - } - ], - "description": [ - { - "code": "en-US", - "content": "The array to be filtered." - } - ], - "documentation": [ - { - "code": "en-US", - "content": "The original array from which elements will be selected based on the predicate." - } - ] - }, - { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "PREDICATE", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } - } - }, - "runtime_name": "predicate", - "default_value": null, - "name": [ - { - "code": "en-US", - "content": "Filter Predicate" - } - ], - "description": [ - { - "code": "en-US", - "content": "A predicate function to test each element for inclusion in the result." - } - ], - "documentation": [ - { - "code": "en-US", - "content": "A function that takes an element of the array and returns a boolean indicating whether the element should be included in the output array." - } - ] - } - ], - "return_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } - } - }, - "throws_error": false, - "generic_keys": [ - "R" - ], - "name": [ - { - "code": "en-US", - "content": "Filter Array" - } - ], - "description": [ - { - "code": "en-US", - "content": "Filters elements of an array based on a predicate." - } - ], - "documentation": [ - { - "code": "en-US", - "content": "Returns a new array containing only the elements from the input array for which the predicate returns true." - } - ], - "deprecation_message": [] -} \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_filter.proto.json b/definitions/standard/runtime_definition/array/std_array_filter.proto.json new file mode 100644 index 0000000..6f1569a --- /dev/null +++ b/definitions/standard/runtime_definition/array/std_array_filter.proto.json @@ -0,0 +1,120 @@ +{ + "runtimeName": "std::array::filter", + "runtimeParameterDefinitions": [ + { + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] + } + }, + "runtimeName": "array", + "defaultValue": null, + "name": [ + { + "code": "en-US", + "content": "Input Array" + } + ], + "description": [ + { + "code": "en-US", + "content": "The array to be filtered." + } + ], + "documentation": [ + { + "code": "en-US", + "content": "The original array from which elements will be selected based on the predicate." + } + ] + }, + { + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "PREDICATE", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] + } + }, + "runtimeName": "predicate", + "defaultValue": null, + "name": [ + { + "code": "en-US", + "content": "Filter Predicate" + } + ], + "description": [ + { + "code": "en-US", + "content": "A predicate function to test each element for inclusion in the result." + } + ], + "documentation": [ + { + "code": "en-US", + "content": "A function that takes an element of the array and returns a boolean indicating whether the element should be included in the output array." + } + ] + } + ], + "returnTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] + } + }, + "throwsError": false, + "genericKeys": [ + "R" + ], + "name": [ + { + "code": "en-US", + "content": "Filter Array" + } + ], + "description": [ + { + "code": "en-US", + "content": "Filters elements of an array based on a predicate." + } + ], + "documentation": [ + { + "code": "en-US", + "content": "Returns a new array containing only the elements from the input array for which the predicate returns true." + } + ], + "deprecationMessage": [] +} \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_find.json b/definitions/standard/runtime_definition/array/std_array_find.proto.json similarity index 53% rename from definitions/standard/runtime_definition/array/std_array_find.json rename to definitions/standard/runtime_definition/array/std_array_find.proto.json index 12d0280..d3aef83 100644 --- a/definitions/standard/runtime_definition/array/std_array_find.json +++ b/definitions/standard/runtime_definition/array/std_array_find.proto.json @@ -1,29 +1,25 @@ { - "runtime_name": "std::array::find", - "runtime_parameter_definitions": [ + "runtimeName": "std::array::find", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] } }, - "runtime_name": "array", - "default_value": null, + "runtimeName": "array", + "defaultValue": null, "name": [ { "code": "en-US", @@ -44,28 +40,24 @@ ] }, { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "PREDICATE", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "PREDICATE", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] } }, - "runtime_name": "predicate", - "default_value": null, + "runtimeName": "predicate", + "defaultValue": null, "name": [ { "code": "en-US", @@ -86,13 +78,11 @@ ] } ], - "return_type_identifier": { - "type": { - "GenericKey": "R" - } + "returnTypeIdentifier": { + "genericKey": "R" }, - "throws_error": false, - "generic_keys": [ + "throwsError": false, + "genericKeys": [ "R" ], "name": [ @@ -113,5 +103,5 @@ "content": "Returns the first element from the input array for which the predicate returns true. If no element matches, returns null or equivalent." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_find_index.json b/definitions/standard/runtime_definition/array/std_array_find_index.proto.json similarity index 52% rename from definitions/standard/runtime_definition/array/std_array_find_index.json rename to definitions/standard/runtime_definition/array/std_array_find_index.proto.json index 1b1c075..8dc5032 100644 --- a/definitions/standard/runtime_definition/array/std_array_find_index.json +++ b/definitions/standard/runtime_definition/array/std_array_find_index.proto.json @@ -1,29 +1,25 @@ { - "runtime_name": "std::array::find_index", - "runtime_parameter_definitions": [ + "runtimeName": "std::array::find_index", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] } }, - "runtime_name": "array", - "default_value": null, + "runtimeName": "array", + "defaultValue": null, "name": [ { "code": "en-US", @@ -44,28 +40,24 @@ ] }, { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "PREDICATE", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "PREDICATE", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] } }, - "runtime_name": "predicate", - "default_value": null, + "runtimeName": "predicate", + "defaultValue": null, "name": [ { "code": "en-US", @@ -86,13 +78,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [ + "throwsError": false, + "genericKeys": [ "R" ], "name": [ @@ -113,5 +103,5 @@ "content": "Returns the zero-based index of the first element for which the predicate returns true. If no element matches, returns -1." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_find_last.json b/definitions/standard/runtime_definition/array/std_array_find_last.proto.json similarity index 53% rename from definitions/standard/runtime_definition/array/std_array_find_last.json rename to definitions/standard/runtime_definition/array/std_array_find_last.proto.json index bff8d2a..046cf9f 100644 --- a/definitions/standard/runtime_definition/array/std_array_find_last.json +++ b/definitions/standard/runtime_definition/array/std_array_find_last.proto.json @@ -1,29 +1,25 @@ { - "runtime_name": "std::array::find_last", - "runtime_parameter_definitions": [ + "runtimeName": "std::array::find_last", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] } }, - "runtime_name": "array", - "default_value": null, + "runtimeName": "array", + "defaultValue": null, "name": [ { "code": "en-US", @@ -44,28 +40,24 @@ ] }, { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "PREDICATE", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "PREDICATE", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] } }, - "runtime_name": "predicate", - "default_value": null, + "runtimeName": "predicate", + "defaultValue": null, "name": [ { "code": "en-US", @@ -86,13 +78,11 @@ ] } ], - "return_type_identifier": { - "type": { - "GenericKey": "R" - } + "returnTypeIdentifier": { + "genericKey": "R" }, - "throws_error": false, - "generic_keys": [ + "throwsError": false, + "genericKeys": [ "R" ], "name": [ @@ -113,5 +103,5 @@ "content": "Returns the last element from the input array for which the predicate returns true. If no element matches, returns null or equivalent." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_first.json b/definitions/standard/runtime_definition/array/std_array_first.proto.json similarity index 54% rename from definitions/standard/runtime_definition/array/std_array_first.json rename to definitions/standard/runtime_definition/array/std_array_first.proto.json index 7dd9471..dc56603 100644 --- a/definitions/standard/runtime_definition/array/std_array_first.json +++ b/definitions/standard/runtime_definition/array/std_array_first.proto.json @@ -1,29 +1,25 @@ { - "runtime_name": "std::array::first", - "runtime_parameter_definitions": [ + "runtimeName": "std::array::first", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] } }, - "runtime_name": "array", - "default_value": null, + "runtimeName": "array", + "defaultValue": null, "name": [ { "code": "en-US", @@ -44,13 +40,11 @@ ] } ], - "return_type_identifier": { - "type": { - "GenericKey": "R" - } + "returnTypeIdentifier": { + "genericKey": "R" }, - "throws_error": false, - "generic_keys": [ + "throwsError": false, + "genericKeys": [ "R" ], "name": [ @@ -71,5 +65,5 @@ "content": "This runtime returns the first element in the given array, if any." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_flat.json b/definitions/standard/runtime_definition/array/std_array_flat.json deleted file mode 100644 index 01a344c..0000000 --- a/definitions/standard/runtime_definition/array/std_array_flat.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "runtime_name": "std::array::flat", - "runtime_parameter_definitions": [ - { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } - } - }, - "runtime_name": "array", - "default_value": null, - "name": [ - { - "code": "en-US", - "content": "Nested Array" - } - ], - "description": [ - { - "code": "en-US", - "content": "The nested array to be flattened." - } - ], - "documentation": [ - { - "code": "en-US", - "content": "An array containing sub-arrays that will be flattened into a single-level array." - } - ] - } - ], - "return_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } - } - }, - "throws_error": false, - "generic_keys": [ - "R" - ], - "name": [ - { - "code": "en-US", - "content": "Flatten Array" - } - ], - "description": [ - { - "code": "en-US", - "content": "Flattens a nested array into a single-level array." - } - ], - "documentation": [ - { - "code": "en-US", - "content": "Returns a new array by concatenating all sub-arrays of the input nested array into one flat array." - } - ], - "deprecation_message": [] -} \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_flat.proto.json b/definitions/standard/runtime_definition/array/std_array_flat.proto.json new file mode 100644 index 0000000..7f806f1 --- /dev/null +++ b/definitions/standard/runtime_definition/array/std_array_flat.proto.json @@ -0,0 +1,95 @@ +{ + "runtimeName": "std::array::flat", + "runtimeParameterDefinitions": [ + { + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] + } + } + ], + "target": "T", + "genericCombinations": [] + } + ] + } + }, + "runtimeName": "array", + "defaultValue": null, + "name": [ + { + "code": "en-US", + "content": "Nested Array" + } + ], + "description": [ + { + "code": "en-US", + "content": "The nested array to be flattened." + } + ], + "documentation": [ + { + "code": "en-US", + "content": "An array containing sub-arrays that will be flattened into a single-level array." + } + ] + } + ], + "returnTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] + } + }, + "throwsError": false, + "genericKeys": [ + "R" + ], + "name": [ + { + "code": "en-US", + "content": "Flatten Array" + } + ], + "description": [ + { + "code": "en-US", + "content": "Flattens a nested array into a single-level array." + } + ], + "documentation": [ + { + "code": "en-US", + "content": "Returns a new array by concatenating all sub-arrays of the input nested array into one flat array." + } + ], + "deprecationMessage": [] +} \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_for_each.json b/definitions/standard/runtime_definition/array/std_array_for_each.proto.json similarity index 53% rename from definitions/standard/runtime_definition/array/std_array_for_each.json rename to definitions/standard/runtime_definition/array/std_array_for_each.proto.json index cfa726d..b6608cd 100644 --- a/definitions/standard/runtime_definition/array/std_array_for_each.json +++ b/definitions/standard/runtime_definition/array/std_array_for_each.proto.json @@ -1,29 +1,25 @@ { - "runtime_name": "std::array::for_each", - "runtime_parameter_definitions": [ + "runtimeName": "std::array::for_each", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] } }, - "runtime_name": "array", - "default_value": null, + "runtimeName": "array", + "defaultValue": null, "name": [ { "code": "en-US", @@ -44,28 +40,24 @@ ] }, { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "CONSUMER", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "CONSUMER", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] } }, - "runtime_name": "consumer", - "default_value": null, + "runtimeName": "consumer", + "defaultValue": null, "name": [ { "code": "en-US", @@ -86,9 +78,9 @@ ] } ], - "return_type_identifier": null, - "throws_error": false, - "generic_keys": [ + "returnTypeIdentifier": null, + "throwsError": false, + "genericKeys": [ "R" ], "name": [ @@ -109,5 +101,5 @@ "content": "This runtime executes the given consumer function on each item in the array without returning a result." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_index_of.json b/definitions/standard/runtime_definition/array/std_array_index_of.proto.json similarity index 60% rename from definitions/standard/runtime_definition/array/std_array_index_of.json rename to definitions/standard/runtime_definition/array/std_array_index_of.proto.json index eeb6ecc..0135673 100644 --- a/definitions/standard/runtime_definition/array/std_array_index_of.json +++ b/definitions/standard/runtime_definition/array/std_array_index_of.proto.json @@ -1,29 +1,25 @@ { - "runtime_name": "std::array::index_of", - "runtime_parameter_definitions": [ + "runtimeName": "std::array::index_of", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] } }, - "runtime_name": "array", - "default_value": null, + "runtimeName": "array", + "defaultValue": null, "name": [ { "code": "en-US", @@ -44,13 +40,11 @@ ] }, { - "data_type_identifier": { - "type": { - "GenericKey": "R" - } + "dataTypeIdentifier": { + "genericKey": "R" }, - "runtime_name": "item", - "default_value": null, + "runtimeName": "item", + "defaultValue": null, "name": [ { "code": "en-US", @@ -71,13 +65,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [ + "throwsError": false, + "genericKeys": [ "R" ], "name": [ @@ -98,5 +90,5 @@ "content": "Returns the zero-based index of the first occurrence of a given item in the specified array. If the item is not found, it typically returns -1." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_is_empty.json b/definitions/standard/runtime_definition/array/std_array_is_empty.proto.json similarity index 52% rename from definitions/standard/runtime_definition/array/std_array_is_empty.json rename to definitions/standard/runtime_definition/array/std_array_is_empty.proto.json index ba715be..48bbf86 100644 --- a/definitions/standard/runtime_definition/array/std_array_is_empty.json +++ b/definitions/standard/runtime_definition/array/std_array_is_empty.proto.json @@ -1,29 +1,25 @@ { - "runtime_name": "std::array::is_empty", - "runtime_parameter_definitions": [ + "runtimeName": "std::array::is_empty", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] } }, - "runtime_name": "array", - "default_value": null, + "runtimeName": "array", + "defaultValue": null, "name": [ { "code": "en-US", @@ -44,13 +40,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "BOOLEAN" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "BOOLEAN" }, - "throws_error": false, - "generic_keys": [ + "throwsError": false, + "genericKeys": [ "R" ], "name": [ @@ -71,5 +65,5 @@ "content": "Returns true if the array contains no elements, otherwise returns false." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_join.json b/definitions/standard/runtime_definition/array/std_array_join.proto.json similarity index 60% rename from definitions/standard/runtime_definition/array/std_array_join.json rename to definitions/standard/runtime_definition/array/std_array_join.proto.json index 701377b..7fcbbf9 100644 --- a/definitions/standard/runtime_definition/array/std_array_join.json +++ b/definitions/standard/runtime_definition/array/std_array_join.proto.json @@ -1,29 +1,25 @@ { - "runtime_name": "std::array::join", - "runtime_parameter_definitions": [ + "runtimeName": "std::array::join", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "DataTypeIdentifier": "TEXT" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "dataTypeIdentifier": "TEXT" + } + ], + "target": "T", + "genericCombinations": [] + } + ] } }, - "runtime_name": "array", - "default_value": null, + "runtimeName": "array", + "defaultValue": null, "name": [ { "code": "en-US", @@ -44,13 +40,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "join_text", - "default_value": null, + "runtimeName": "join_text", + "defaultValue": null, "name": [ { "code": "en-US", @@ -71,13 +65,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -96,5 +88,5 @@ "content": "Applies a filter operation on the input text array and returns a single concatenated string of filtered elements joined by the provided join text." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_last.json b/definitions/standard/runtime_definition/array/std_array_last.proto.json similarity index 54% rename from definitions/standard/runtime_definition/array/std_array_last.json rename to definitions/standard/runtime_definition/array/std_array_last.proto.json index c6839b5..36797ab 100644 --- a/definitions/standard/runtime_definition/array/std_array_last.json +++ b/definitions/standard/runtime_definition/array/std_array_last.proto.json @@ -1,29 +1,25 @@ { - "runtime_name": "std::array::last", - "runtime_parameter_definitions": [ + "runtimeName": "std::array::last", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] } }, - "runtime_name": "array", - "default_value": null, + "runtimeName": "array", + "defaultValue": null, "name": [ { "code": "en-US", @@ -44,13 +40,11 @@ ] } ], - "return_type_identifier": { - "type": { - "GenericKey": "R" - } + "returnTypeIdentifier": { + "genericKey": "R" }, - "throws_error": false, - "generic_keys": [ + "throwsError": false, + "genericKeys": [ "R" ], "name": [ @@ -71,5 +65,5 @@ "content": "This runtime returns the last element in the given array, if any." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_map.json b/definitions/standard/runtime_definition/array/std_array_map.json deleted file mode 100644 index 815d158..0000000 --- a/definitions/standard/runtime_definition/array/std_array_map.json +++ /dev/null @@ -1,144 +0,0 @@ -{ - "runtime_name": "std::array::map", - "runtime_parameter_definitions": [ - { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "IN" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } - } - }, - "runtime_name": "array", - "default_value": null, - "name": [ - { - "code": "en-US", - "content": "Input Array" - } - ], - "description": [ - { - "code": "en-US", - "content": "The array to be transformed." - } - ], - "documentation": [ - { - "code": "en-US", - "content": "Each element of this array will be passed through the transform function." - } - ] - }, - { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "TRANSFORM", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "IN" - } - } - ], - "target": "I", - "generic_combinations": [] - }, - { - "source": [ - { - "type": { - "GenericKey": "OUT" - } - } - ], - "target": "R", - "generic_combinations": [] - } - ] - } - } - }, - "runtime_name": "transform", - "default_value": null, - "name": [ - { - "code": "en-US", - "content": "Transform Function" - } - ], - "description": [ - { - "code": "en-US", - "content": "A function that transforms each item in the array." - } - ], - "documentation": [ - { - "code": "en-US", - "content": "The transform function is applied to every element of the array to produce a new array." - } - ] - } - ], - "return_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "OUT" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } - } - }, - "throws_error": false, - "generic_keys": [ - "IN", - "OUT" - ], - "name": [ - { - "code": "en-US", - "content": "Map Array" - } - ], - "description": [ - { - "code": "en-US", - "content": "Transforms each element in the array using the provided function." - } - ], - "documentation": [ - { - "code": "en-US", - "content": "This runtime applies the transform function to each element in the array, producing a new array of the results." - } - ], - "deprecation_message": [] -} \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_map.proto.json b/definitions/standard/runtime_definition/array/std_array_map.proto.json new file mode 100644 index 0000000..f7dcb6a --- /dev/null +++ b/definitions/standard/runtime_definition/array/std_array_map.proto.json @@ -0,0 +1,130 @@ +{ + "runtimeName": "std::array::map", + "runtimeParameterDefinitions": [ + { + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "IN" + } + ], + "target": "T", + "genericCombinations": [] + } + ] + } + }, + "runtimeName": "array", + "defaultValue": null, + "name": [ + { + "code": "en-US", + "content": "Input Array" + } + ], + "description": [ + { + "code": "en-US", + "content": "The array to be transformed." + } + ], + "documentation": [ + { + "code": "en-US", + "content": "Each element of this array will be passed through the transform function." + } + ] + }, + { + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "TRANSFORM", + "genericMappers": [ + { + "source": [ + { + "genericKey": "IN" + } + ], + "target": "I", + "genericCombinations": [] + }, + { + "source": [ + { + "genericKey": "OUT" + } + ], + "target": "R", + "genericCombinations": [] + } + ] + } + }, + "runtimeName": "transform", + "defaultValue": null, + "name": [ + { + "code": "en-US", + "content": "Transform Function" + } + ], + "description": [ + { + "code": "en-US", + "content": "A function that transforms each item in the array." + } + ], + "documentation": [ + { + "code": "en-US", + "content": "The transform function is applied to every element of the array to produce a new array." + } + ] + } + ], + "returnTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "OUT" + } + ], + "target": "T", + "genericCombinations": [] + } + ] + } + }, + "throwsError": false, + "genericKeys": [ + "IN", + "OUT" + ], + "name": [ + { + "code": "en-US", + "content": "Map Array" + } + ], + "description": [ + { + "code": "en-US", + "content": "Transforms each element in the array using the provided function." + } + ], + "documentation": [ + { + "code": "en-US", + "content": "This runtime applies the transform function to each element in the array, producing a new array of the results." + } + ], + "deprecationMessage": [] +} \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_max.json b/definitions/standard/runtime_definition/array/std_array_max.proto.json similarity index 52% rename from definitions/standard/runtime_definition/array/std_array_max.json rename to definitions/standard/runtime_definition/array/std_array_max.proto.json index 4bc8f34..a3c4a11 100644 --- a/definitions/standard/runtime_definition/array/std_array_max.json +++ b/definitions/standard/runtime_definition/array/std_array_max.proto.json @@ -1,29 +1,25 @@ { - "runtime_name": "std::array::max", - "runtime_parameter_definitions": [ + "runtimeName": "std::array::max", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] } }, - "runtime_name": "array", - "default_value": null, + "runtimeName": "array", + "defaultValue": null, "name": [ { "code": "en-US", @@ -44,13 +40,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [ + "throwsError": false, + "genericKeys": [ "R" ], "name": [ @@ -71,5 +65,5 @@ "content": "Returns the largest number contained in the provided array." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_min.json b/definitions/standard/runtime_definition/array/std_array_min.proto.json similarity index 52% rename from definitions/standard/runtime_definition/array/std_array_min.json rename to definitions/standard/runtime_definition/array/std_array_min.proto.json index a2ee23e..f4fcff8 100644 --- a/definitions/standard/runtime_definition/array/std_array_min.json +++ b/definitions/standard/runtime_definition/array/std_array_min.proto.json @@ -1,29 +1,25 @@ { - "runtime_name": "std::array::min", - "runtime_parameter_definitions": [ + "runtimeName": "std::array::min", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] } }, - "runtime_name": "array", - "default_value": null, + "runtimeName": "array", + "defaultValue": null, "name": [ { "code": "en-US", @@ -44,13 +40,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [ + "throwsError": false, + "genericKeys": [ "R" ], "name": [ @@ -71,5 +65,5 @@ "content": "Returns the smallest number contained in the provided array." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_pop.json b/definitions/standard/runtime_definition/array/std_array_pop.proto.json similarity index 53% rename from definitions/standard/runtime_definition/array/std_array_pop.json rename to definitions/standard/runtime_definition/array/std_array_pop.proto.json index b3cd950..a5ab984 100644 --- a/definitions/standard/runtime_definition/array/std_array_pop.json +++ b/definitions/standard/runtime_definition/array/std_array_pop.proto.json @@ -1,29 +1,25 @@ { - "runtime_name": "std::array::pop", - "runtime_parameter_definitions": [ + "runtimeName": "std::array::pop", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] } }, - "runtime_name": "array", - "default_value": null, + "runtimeName": "array", + "defaultValue": null, "name": [ { "code": "en-US", @@ -44,13 +40,11 @@ ] } ], - "return_type_identifier": { - "type": { - "GenericKey": "R" - } + "returnTypeIdentifier": { + "genericKey": "R" }, - "throws_error": false, - "generic_keys": [ + "throwsError": false, + "genericKeys": [ "R" ], "name": [ @@ -71,5 +65,5 @@ "content": "Removes the last element from the specified array and returns it. The array is modified in place." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_push.json b/definitions/standard/runtime_definition/array/std_array_push.proto.json similarity index 57% rename from definitions/standard/runtime_definition/array/std_array_push.json rename to definitions/standard/runtime_definition/array/std_array_push.proto.json index cf237ef..40fb062 100644 --- a/definitions/standard/runtime_definition/array/std_array_push.json +++ b/definitions/standard/runtime_definition/array/std_array_push.proto.json @@ -1,29 +1,25 @@ { - "runtime_name": "std::array::push", - "runtime_parameter_definitions": [ + "runtimeName": "std::array::push", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "I" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "I" + } + ], + "target": "T", + "genericCombinations": [] + } + ] } }, - "runtime_name": "array", - "default_value": null, + "runtimeName": "array", + "defaultValue": null, "name": [ { "code": "en-US", @@ -44,13 +40,11 @@ ] }, { - "data_type_identifier": { - "type": { - "GenericKey": "I" - } + "dataTypeIdentifier": { + "genericKey": "I" }, - "runtime_name": "item", - "default_value": null, + "runtimeName": "item", + "defaultValue": null, "name": [ { "code": "en-US", @@ -71,13 +65,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [ + "throwsError": false, + "genericKeys": [ "I" ], "name": [ @@ -98,5 +90,5 @@ "content": "Adds a new element to the end of the array and returns the new length of the array." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_remove.json b/definitions/standard/runtime_definition/array/std_array_remove.proto.json similarity index 53% rename from definitions/standard/runtime_definition/array/std_array_remove.json rename to definitions/standard/runtime_definition/array/std_array_remove.proto.json index 447d5cd..7b87576 100644 --- a/definitions/standard/runtime_definition/array/std_array_remove.json +++ b/definitions/standard/runtime_definition/array/std_array_remove.proto.json @@ -1,29 +1,25 @@ { - "runtime_name": "std::array::remove", - "runtime_parameter_definitions": [ + "runtimeName": "std::array::remove", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] } }, - "runtime_name": "array", - "default_value": null, + "runtimeName": "array", + "defaultValue": null, "name": [ { "code": "en-US", @@ -44,13 +40,11 @@ ] }, { - "data_type_identifier": { - "type": { - "GenericKey": "R" - } + "dataTypeIdentifier": { + "genericKey": "R" }, - "runtime_name": "item", - "default_value": null, + "runtimeName": "item", + "defaultValue": null, "name": [ { "code": "en-US", @@ -71,28 +65,24 @@ ] } ], - "return_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } + "returnTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] } }, - "throws_error": false, - "generic_keys": [ + "throwsError": false, + "genericKeys": [ "R" ], "name": [ @@ -113,5 +103,5 @@ "content": "Removes the first matching item from the given array and returns the resulting array." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_reverse.json b/definitions/standard/runtime_definition/array/std_array_reverse.json deleted file mode 100644 index f61b1a5..0000000 --- a/definitions/standard/runtime_definition/array/std_array_reverse.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "runtime_name": "std::array::reverse", - "runtime_parameter_definitions": [ - { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } - } - }, - "runtime_name": "array", - "default_value": null, - "name": [ - { - "code": "en-US", - "content": "Array" - } - ], - "description": [ - { - "code": "en-US", - "content": "The input array to be reversed." - } - ], - "documentation": [ - { - "code": "en-US", - "content": "An array of elements whose order will be reversed." - } - ] - } - ], - "return_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } - } - }, - "throws_error": false, - "generic_keys": [ - "R" - ], - "name": [ - { - "code": "en-US", - "content": "Reverse Array" - } - ], - "description": [ - { - "code": "en-US", - "content": "Reverses the order of elements in the array." - } - ], - "documentation": [ - { - "code": "en-US", - "content": "Returns a new array with the elements of the input array in reverse order." - } - ], - "deprecation_message": [] -} \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_reverse.proto.json b/definitions/standard/runtime_definition/array/std_array_reverse.proto.json new file mode 100644 index 0000000..7162d0a --- /dev/null +++ b/definitions/standard/runtime_definition/array/std_array_reverse.proto.json @@ -0,0 +1,82 @@ +{ + "runtimeName": "std::array::reverse", + "runtimeParameterDefinitions": [ + { + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] + } + }, + "runtimeName": "array", + "defaultValue": null, + "name": [ + { + "code": "en-US", + "content": "Array" + } + ], + "description": [ + { + "code": "en-US", + "content": "The input array to be reversed." + } + ], + "documentation": [ + { + "code": "en-US", + "content": "An array of elements whose order will be reversed." + } + ] + } + ], + "returnTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] + } + }, + "throwsError": false, + "genericKeys": [ + "R" + ], + "name": [ + { + "code": "en-US", + "content": "Reverse Array" + } + ], + "description": [ + { + "code": "en-US", + "content": "Reverses the order of elements in the array." + } + ], + "documentation": [ + { + "code": "en-US", + "content": "Returns a new array with the elements of the input array in reverse order." + } + ], + "deprecationMessage": [] +} \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_size.json b/definitions/standard/runtime_definition/array/std_array_size.proto.json similarity index 53% rename from definitions/standard/runtime_definition/array/std_array_size.json rename to definitions/standard/runtime_definition/array/std_array_size.proto.json index b65c24f..252185b 100644 --- a/definitions/standard/runtime_definition/array/std_array_size.json +++ b/definitions/standard/runtime_definition/array/std_array_size.proto.json @@ -1,29 +1,25 @@ { - "runtime_name": "std::array::size", - "runtime_parameter_definitions": [ + "runtimeName": "std::array::size", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] } }, - "runtime_name": "array", - "default_value": null, + "runtimeName": "array", + "defaultValue": null, "name": [ { "code": "en-US", @@ -44,13 +40,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [ + "throwsError": false, + "genericKeys": [ "R" ], "name": [ @@ -71,5 +65,5 @@ "content": "This function returns the count of elements present in the given array." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_sort.json b/definitions/standard/runtime_definition/array/std_array_sort.json deleted file mode 100644 index 2eca2da..0000000 --- a/definitions/standard/runtime_definition/array/std_array_sort.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "runtime_name": "std::array::sort", - "runtime_parameter_definitions": [ - { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } - } - }, - "runtime_name": "array", - "default_value": null, - "name": [ - { - "code": "en-US", - "content": "Array" - } - ], - "description": [ - { - "code": "en-US", - "content": "The input array to be sorted." - } - ], - "documentation": [ - { - "code": "en-US", - "content": "An array of elements that will be sorted using the provided comparator function." - } - ] - }, - { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "COMPARATOR", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "I", - "generic_combinations": [] - } - ] - } - } - }, - "runtime_name": "comparator", - "default_value": null, - "name": [ - { - "code": "en-US", - "content": "Comparator" - } - ], - "description": [ - { - "code": "en-US", - "content": "A comparator function used to determine the sort order of elements." - } - ], - "documentation": [ - { - "code": "en-US", - "content": "A function that takes two elements and returns a negative, zero, or positive number to indicate their ordering." - } - ] - } - ], - "return_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } - } - }, - "throws_error": false, - "generic_keys": [ - "R" - ], - "name": [ - { - "code": "en-US", - "content": "Sort Array" - } - ], - "description": [ - { - "code": "en-US", - "content": "Sorts the elements of the array using the specified comparator." - } - ], - "documentation": [ - { - "code": "en-US", - "content": "Returns a new array with the elements sorted according to the comparator function provided." - } - ], - "deprecation_message": [] -} \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_sort.proto.json b/definitions/standard/runtime_definition/array/std_array_sort.proto.json new file mode 100644 index 0000000..108b74e --- /dev/null +++ b/definitions/standard/runtime_definition/array/std_array_sort.proto.json @@ -0,0 +1,120 @@ +{ + "runtimeName": "std::array::sort", + "runtimeParameterDefinitions": [ + { + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] + } + }, + "runtimeName": "array", + "defaultValue": null, + "name": [ + { + "code": "en-US", + "content": "Array" + } + ], + "description": [ + { + "code": "en-US", + "content": "The input array to be sorted." + } + ], + "documentation": [ + { + "code": "en-US", + "content": "An array of elements that will be sorted using the provided comparator function." + } + ] + }, + { + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "COMPARATOR", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "I", + "genericCombinations": [] + } + ] + } + }, + "runtimeName": "comparator", + "defaultValue": null, + "name": [ + { + "code": "en-US", + "content": "Comparator" + } + ], + "description": [ + { + "code": "en-US", + "content": "A comparator function used to determine the sort order of elements." + } + ], + "documentation": [ + { + "code": "en-US", + "content": "A function that takes two elements and returns a negative, zero, or positive number to indicate their ordering." + } + ] + } + ], + "returnTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] + } + }, + "throwsError": false, + "genericKeys": [ + "R" + ], + "name": [ + { + "code": "en-US", + "content": "Sort Array" + } + ], + "description": [ + { + "code": "en-US", + "content": "Sorts the elements of the array using the specified comparator." + } + ], + "documentation": [ + { + "code": "en-US", + "content": "Returns a new array with the elements sorted according to the comparator function provided." + } + ], + "deprecationMessage": [] +} \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_sort_reverse.json b/definitions/standard/runtime_definition/array/std_array_sort_reverse.proto.json similarity index 53% rename from definitions/standard/runtime_definition/array/std_array_sort_reverse.json rename to definitions/standard/runtime_definition/array/std_array_sort_reverse.proto.json index 48b065f..19c1637 100644 --- a/definitions/standard/runtime_definition/array/std_array_sort_reverse.json +++ b/definitions/standard/runtime_definition/array/std_array_sort_reverse.proto.json @@ -1,29 +1,25 @@ { - "runtime_name": "std::array::sort_reverse", - "runtime_parameter_definitions": [ + "runtimeName": "std::array::sort_reverse", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] } }, - "runtime_name": "array", - "default_value": null, + "runtimeName": "array", + "defaultValue": null, "name": [ { "code": "en-US", @@ -44,28 +40,24 @@ ] }, { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "COMPARATOR", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "I", - "generic_combinations": [] - } - ] - } + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "COMPARATOR", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "I", + "genericCombinations": [] + } + ] } }, - "runtime_name": "comparator", - "default_value": null, + "runtimeName": "comparator", + "defaultValue": null, "name": [ { "code": "en-US", @@ -86,11 +78,24 @@ ] } ], - "return_type_identifier": { - "type": null + "returnTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] + } }, - "throws_error": false, - "generic_keys": [ + "throwsError": false, + "genericKeys": [ "R" ], "name": [ @@ -111,5 +116,5 @@ "content": "Returns a new array with the elements sorted in descending order according to the comparator function provided." } ], - "deprecation_message": [] -} \ No newline at end of file + "deprecationMessage": [] +} diff --git a/definitions/standard/runtime_definition/array/std_array_sum.json b/definitions/standard/runtime_definition/array/std_array_sum.proto.json similarity index 51% rename from definitions/standard/runtime_definition/array/std_array_sum.json rename to definitions/standard/runtime_definition/array/std_array_sum.proto.json index 5fb880b..dc0ef06 100644 --- a/definitions/standard/runtime_definition/array/std_array_sum.json +++ b/definitions/standard/runtime_definition/array/std_array_sum.proto.json @@ -1,29 +1,24 @@ { - "runtime_name": "std::array::sum", - "runtime_parameter_definitions": [ + "runtimeName": "std::array::sum", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "DataTypeIdentifier": "NUMBER" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "dataTypeIdentifier": "NUMBER" + } + ], + "target": "T", + "genericCombinations": [] + } + ] } }, - "runtime_name": "array", - "default_value": null, + "runtimeName": "array", "name": [ { "code": "en-US", @@ -44,13 +39,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -69,5 +62,5 @@ "content": "Adds up all numbers in the input array and returns their sum." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_to_unique.json b/definitions/standard/runtime_definition/array/std_array_to_unique.json deleted file mode 100644 index e0e5e50..0000000 --- a/definitions/standard/runtime_definition/array/std_array_to_unique.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "runtime_name": "std::array::to_unique", - "runtime_parameter_definitions": [ - { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } - } - }, - "runtime_name": "array", - "default_value": null, - "name": [ - { - "code": "en-US", - "content": "Array" - } - ], - "description": [ - { - "code": "en-US", - "content": "The input array from which duplicates will be removed." - } - ], - "documentation": [ - { - "code": "en-US", - "content": "An array of elements that may contain duplicates. This function will remove any duplicate items and return a new array with unique values only." - } - ] - } - ], - "return_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "GenericKey": "R" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } - } - }, - "throws_error": false, - "generic_keys": [ - "R" - ], - "name": [ - { - "code": "en-US", - "content": "To Unique" - } - ], - "description": [ - { - "code": "en-US", - "content": "Removes duplicate elements from the input array." - } - ], - "documentation": [ - { - "code": "en-US", - "content": "Returns a new array containing only the unique elements from the input array. The original order may or may not be preserved depending on the implementation." - } - ], - "deprecation_message": [] -} \ No newline at end of file diff --git a/definitions/standard/runtime_definition/array/std_array_to_unique.proto.json b/definitions/standard/runtime_definition/array/std_array_to_unique.proto.json new file mode 100644 index 0000000..94c3d86 --- /dev/null +++ b/definitions/standard/runtime_definition/array/std_array_to_unique.proto.json @@ -0,0 +1,82 @@ +{ + "runtimeName": "std::array::to_unique", + "runtimeParameterDefinitions": [ + { + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] + } + }, + "runtimeName": "array", + "defaultValue": null, + "name": [ + { + "code": "en-US", + "content": "Array" + } + ], + "description": [ + { + "code": "en-US", + "content": "The input array from which duplicates will be removed." + } + ], + "documentation": [ + { + "code": "en-US", + "content": "An array of elements that may contain duplicates. This function will remove any duplicate items and return a new array with unique values only." + } + ] + } + ], + "returnTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "genericKey": "R" + } + ], + "target": "T", + "genericCombinations": [] + } + ] + } + }, + "throwsError": false, + "genericKeys": [ + "R" + ], + "name": [ + { + "code": "en-US", + "content": "To Unique" + } + ], + "description": [ + { + "code": "en-US", + "content": "Removes duplicate elements from the input array." + } + ], + "documentation": [ + { + "code": "en-US", + "content": "Returns a new array containing only the unique elements from the input array. The original order may or may not be preserved depending on the implementation." + } + ], + "deprecationMessage": [] +} \ No newline at end of file diff --git a/definitions/standard/runtime_definition/boolean/std_boolean_as_number.json b/definitions/standard/runtime_definition/boolean/std_boolean_as_number.proto.json similarity index 64% rename from definitions/standard/runtime_definition/boolean/std_boolean_as_number.json rename to definitions/standard/runtime_definition/boolean/std_boolean_as_number.proto.json index 5cbea4e..8961c60 100644 --- a/definitions/standard/runtime_definition/boolean/std_boolean_as_number.json +++ b/definitions/standard/runtime_definition/boolean/std_boolean_as_number.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::boolean::as_number", - "runtime_parameter_definitions": [ + "runtimeName": "std::boolean::as_number", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "BOOLEAN" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "BOOLEAN" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Converts a boolean value to a number." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/boolean/std_boolean_as_text.json b/definitions/standard/runtime_definition/boolean/std_boolean_as_text.proto.json similarity index 64% rename from definitions/standard/runtime_definition/boolean/std_boolean_as_text.json rename to definitions/standard/runtime_definition/boolean/std_boolean_as_text.proto.json index 0414734..531ba88 100644 --- a/definitions/standard/runtime_definition/boolean/std_boolean_as_text.json +++ b/definitions/standard/runtime_definition/boolean/std_boolean_as_text.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::boolean::as_text", - "runtime_parameter_definitions": [ + "runtimeName": "std::boolean::as_text", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "BOOLEAN" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "BOOLEAN" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Converts a boolean value to a text string." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/boolean/std_boolean_from_number.json b/definitions/standard/runtime_definition/boolean/std_boolean_from_number.proto.json similarity index 65% rename from definitions/standard/runtime_definition/boolean/std_boolean_from_number.json rename to definitions/standard/runtime_definition/boolean/std_boolean_from_number.proto.json index 19e6af1..4b81edc 100644 --- a/definitions/standard/runtime_definition/boolean/std_boolean_from_number.json +++ b/definitions/standard/runtime_definition/boolean/std_boolean_from_number.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::boolean::from_number", - "runtime_parameter_definitions": [ + "runtimeName": "std::boolean::from_number", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "BOOLEAN" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "BOOLEAN" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Converts a number to a boolean value. Typically, 0 maps to false and non-zero maps to true." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/boolean/std_boolean_from_text.json b/definitions/standard/runtime_definition/boolean/std_boolean_from_text.proto.json similarity index 65% rename from definitions/standard/runtime_definition/boolean/std_boolean_from_text.json rename to definitions/standard/runtime_definition/boolean/std_boolean_from_text.proto.json index e4b2fc0..49b4e11 100644 --- a/definitions/standard/runtime_definition/boolean/std_boolean_from_text.json +++ b/definitions/standard/runtime_definition/boolean/std_boolean_from_text.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::boolean::from_text", - "runtime_parameter_definitions": [ + "runtimeName": "std::boolean::from_text", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "BOOLEAN" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "BOOLEAN" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Converts a text string to a boolean value. Recognizes 'true' and 'false' (case-insensitive)." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/boolean/std_boolean_is_equal.json b/definitions/standard/runtime_definition/boolean/std_boolean_is_equal.proto.json similarity index 67% rename from definitions/standard/runtime_definition/boolean/std_boolean_is_equal.json rename to definitions/standard/runtime_definition/boolean/std_boolean_is_equal.proto.json index ba8b033..3dd756a 100644 --- a/definitions/standard/runtime_definition/boolean/std_boolean_is_equal.json +++ b/definitions/standard/runtime_definition/boolean/std_boolean_is_equal.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::boolean::is_equal", - "runtime_parameter_definitions": [ + "runtimeName": "std::boolean::is_equal", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "BOOLEAN" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "BOOLEAN" }, - "runtime_name": "first", - "default_value": null, + "runtimeName": "first", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "BOOLEAN" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "BOOLEAN" }, - "runtime_name": "second", - "default_value": null, + "runtimeName": "second", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "BOOLEAN" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "BOOLEAN" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Compares two boolean values for equality. Returns true if they are the same, false otherwise." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/boolean/std_boolean_negate.json b/definitions/standard/runtime_definition/boolean/std_boolean_negate.proto.json similarity index 62% rename from definitions/standard/runtime_definition/boolean/std_boolean_negate.json rename to definitions/standard/runtime_definition/boolean/std_boolean_negate.proto.json index 601b81a..b0fc7a2 100644 --- a/definitions/standard/runtime_definition/boolean/std_boolean_negate.json +++ b/definitions/standard/runtime_definition/boolean/std_boolean_negate.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::boolean::negate", - "runtime_parameter_definitions": [ + "runtimeName": "std::boolean::negate", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "BOOLEAN" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "BOOLEAN" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "BOOLEAN" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "BOOLEAN" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Negates a boolean value." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/control/std_control_return.json b/definitions/standard/runtime_definition/control/std_control_return.proto.json similarity index 73% rename from definitions/standard/runtime_definition/control/std_control_return.json rename to definitions/standard/runtime_definition/control/std_control_return.proto.json index 42578f7..2236b9b 100644 --- a/definitions/standard/runtime_definition/control/std_control_return.json +++ b/definitions/standard/runtime_definition/control/std_control_return.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::control::return", - "runtime_parameter_definitions": [ + "runtimeName": "std::control::return", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "GenericKey": "R" - } + "dataTypeIdentifier": { + "genericKey": "R" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "GenericKey": "R" - } + "returnTypeIdentifier": { + "genericKey": "R" }, - "throws_error": false, - "generic_keys": [ + "throwsError": false, + "genericKeys": [ "R" ], "name": [ @@ -56,5 +52,5 @@ "content": "Ends the current context and returns the specified value to the upper scope. This node behaves like a standard 'return' statement in programming languages, stopping further execution within the current flow." } ], - "deprecation_message": [] -} + "deprecationMessage": [] +} \ No newline at end of file diff --git a/definitions/standard/runtime_definition/control/std_control_stop.json b/definitions/standard/runtime_definition/control/std_control_stop.proto.json similarity index 74% rename from definitions/standard/runtime_definition/control/std_control_stop.json rename to definitions/standard/runtime_definition/control/std_control_stop.proto.json index dcee778..fbe6605 100644 --- a/definitions/standard/runtime_definition/control/std_control_stop.json +++ b/definitions/standard/runtime_definition/control/std_control_stop.proto.json @@ -1,9 +1,9 @@ { - "runtime_name": "std::control::stop", - "runtime_parameter_definitions": [], - "return_type_identifier": null, - "throws_error": false, - "generic_keys": [], + "runtimeName": "std::control::stop", + "runtimeParameterDefinitions": [], + "returnTypeIdentifier": null, + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -22,5 +22,5 @@ "content": "Terminates the current execution context entirely, halting all ongoing and future iterations. Once invoked, no additional steps or loops within this context will be executed. This node behaves like a global stop or termination signal within the flow." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_abs.json b/definitions/standard/runtime_definition/number/std_number_abs.proto.json similarity index 67% rename from definitions/standard/runtime_definition/number/std_number_abs.json rename to definitions/standard/runtime_definition/number/std_number_abs.proto.json index 0248aff..cf222e4 100644 --- a/definitions/standard/runtime_definition/number/std_number_abs.json +++ b/definitions/standard/runtime_definition/number/std_number_abs.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::abs", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::abs", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Removes the sign from the input number, returning its non-negative value." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_add.json b/definitions/standard/runtime_definition/number/std_number_add.proto.json similarity index 66% rename from definitions/standard/runtime_definition/number/std_number_add.json rename to definitions/standard/runtime_definition/number/std_number_add.proto.json index 5b00d9e..e6b64b9 100644 --- a/definitions/standard/runtime_definition/number/std_number_add.json +++ b/definitions/standard/runtime_definition/number/std_number_add.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::add", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::add", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "first", - "default_value": null, + "runtimeName": "first", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "second", - "default_value": null, + "runtimeName": "second", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Adds two numbers together." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_arccos.json b/definitions/standard/runtime_definition/number/std_number_arccos.proto.json similarity index 67% rename from definitions/standard/runtime_definition/number/std_number_arccos.json rename to definitions/standard/runtime_definition/number/std_number_arccos.proto.json index d82891d..e1d8be9 100644 --- a/definitions/standard/runtime_definition/number/std_number_arccos.json +++ b/definitions/standard/runtime_definition/number/std_number_arccos.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::arccos", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::arccos", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Computes the angle in radians whose cosine is the given number." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_arcsin.json b/definitions/standard/runtime_definition/number/std_number_arcsin.proto.json similarity index 66% rename from definitions/standard/runtime_definition/number/std_number_arcsin.json rename to definitions/standard/runtime_definition/number/std_number_arcsin.proto.json index 3b1a535..376f13d 100644 --- a/definitions/standard/runtime_definition/number/std_number_arcsin.json +++ b/definitions/standard/runtime_definition/number/std_number_arcsin.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::arcsin", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::arcsin", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Computes the angle in radians whose sine is the given number." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_arctan.json b/definitions/standard/runtime_definition/number/std_number_arctan.proto.json similarity index 66% rename from definitions/standard/runtime_definition/number/std_number_arctan.json rename to definitions/standard/runtime_definition/number/std_number_arctan.proto.json index cd7d2b8..4f89586 100644 --- a/definitions/standard/runtime_definition/number/std_number_arctan.json +++ b/definitions/standard/runtime_definition/number/std_number_arctan.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::arctan", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::arctan", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Computes the angle in radians whose tangent is the given number." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_as_text.json b/definitions/standard/runtime_definition/number/std_number_as_text.proto.json similarity index 66% rename from definitions/standard/runtime_definition/number/std_number_as_text.json rename to definitions/standard/runtime_definition/number/std_number_as_text.proto.json index 9ca2bf7..e6aaf8c 100644 --- a/definitions/standard/runtime_definition/number/std_number_as_text.json +++ b/definitions/standard/runtime_definition/number/std_number_as_text.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::as_text", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::as_text", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "number", - "default_value": null, + "runtimeName": "number", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Transforms the given numeric value into a string format." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_clamp.json b/definitions/standard/runtime_definition/number/std_number_clamp.proto.json similarity index 69% rename from definitions/standard/runtime_definition/number/std_number_clamp.json rename to definitions/standard/runtime_definition/number/std_number_clamp.proto.json index 00de2dc..c09c418 100644 --- a/definitions/standard/runtime_definition/number/std_number_clamp.json +++ b/definitions/standard/runtime_definition/number/std_number_clamp.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::clamp", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::clamp", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "min", - "default_value": null, + "runtimeName": "min", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "max", - "default_value": null, + "runtimeName": "max", + "defaultValue": null, "name": [ { "code": "en-US", @@ -83,13 +77,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -108,5 +100,5 @@ "content": "Returns the given number clamped between the minimum and maximum bounds." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_cos.json b/definitions/standard/runtime_definition/number/std_number_cos.proto.json similarity index 66% rename from definitions/standard/runtime_definition/number/std_number_cos.json rename to definitions/standard/runtime_definition/number/std_number_cos.proto.json index 8ca27df..2f7e7e7 100644 --- a/definitions/standard/runtime_definition/number/std_number_cos.json +++ b/definitions/standard/runtime_definition/number/std_number_cos.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::cos", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::cos", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "radians", - "default_value": null, + "runtimeName": "radians", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Calculates the cosine value of the input angle measured in radians." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_cosh.json b/definitions/standard/runtime_definition/number/std_number_cosh.proto.json similarity index 66% rename from definitions/standard/runtime_definition/number/std_number_cosh.json rename to definitions/standard/runtime_definition/number/std_number_cosh.proto.json index c525f51..d4e9878 100644 --- a/definitions/standard/runtime_definition/number/std_number_cosh.json +++ b/definitions/standard/runtime_definition/number/std_number_cosh.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::cosh", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::cosh", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Calculates the hyperbolic cosine (cosh) of the input value." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_divide.json b/definitions/standard/runtime_definition/number/std_number_divide.proto.json similarity index 69% rename from definitions/standard/runtime_definition/number/std_number_divide.json rename to definitions/standard/runtime_definition/number/std_number_divide.proto.json index 23413d9..3eb1bbd 100644 --- a/definitions/standard/runtime_definition/number/std_number_divide.json +++ b/definitions/standard/runtime_definition/number/std_number_divide.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::divide", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::divide", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "first", - "default_value": null, + "runtimeName": "first", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "second", - "default_value": null, + "runtimeName": "second", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Returns the result of dividing the first numeric input (dividend) by the second (divisor)." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_euler.json b/definitions/standard/runtime_definition/number/std_number_euler.proto.json similarity index 63% rename from definitions/standard/runtime_definition/number/std_number_euler.json rename to definitions/standard/runtime_definition/number/std_number_euler.proto.json index 41ef4b0..0cbf85a 100644 --- a/definitions/standard/runtime_definition/number/std_number_euler.json +++ b/definitions/standard/runtime_definition/number/std_number_euler.proto.json @@ -1,13 +1,11 @@ { - "runtime_name": "std::number::euler", - "runtime_parameter_definitions": [], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "runtimeName": "std::number::euler", + "runtimeParameterDefinitions": [], + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -26,5 +24,5 @@ "content": "Provides the constant value of Euler's number, approximately 2.71828, which is the base of the natural logarithm." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_exponential.json b/definitions/standard/runtime_definition/number/std_number_exponential.proto.json similarity index 69% rename from definitions/standard/runtime_definition/number/std_number_exponential.json rename to definitions/standard/runtime_definition/number/std_number_exponential.proto.json index e773016..b027a4c 100644 --- a/definitions/standard/runtime_definition/number/std_number_exponential.json +++ b/definitions/standard/runtime_definition/number/std_number_exponential.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::exponential", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::exponential", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "base", - "default_value": null, + "runtimeName": "base", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "exponent", - "default_value": null, + "runtimeName": "exponent", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Computes the result of raising the base to the power specified by the exponent." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_from_text.json b/definitions/standard/runtime_definition/number/std_number_from_text.proto.json similarity index 67% rename from definitions/standard/runtime_definition/number/std_number_from_text.json rename to definitions/standard/runtime_definition/number/std_number_from_text.proto.json index 7e58c9c..ccbca6d 100644 --- a/definitions/standard/runtime_definition/number/std_number_from_text.json +++ b/definitions/standard/runtime_definition/number/std_number_from_text.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::from_text", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::from_text", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "text", - "default_value": null, + "runtimeName": "text", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Attempts to parse the provided text input and return its numeric equivalent." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_infinity.json b/definitions/standard/runtime_definition/number/std_number_infinity.proto.json similarity index 62% rename from definitions/standard/runtime_definition/number/std_number_infinity.json rename to definitions/standard/runtime_definition/number/std_number_infinity.proto.json index be393cc..bbaf223 100644 --- a/definitions/standard/runtime_definition/number/std_number_infinity.json +++ b/definitions/standard/runtime_definition/number/std_number_infinity.proto.json @@ -1,13 +1,11 @@ { - "runtime_name": "std::number::infinity", - "runtime_parameter_definitions": [], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "runtimeName": "std::number::infinity", + "runtimeParameterDefinitions": [], + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -26,5 +24,5 @@ "content": "Provides the representation of positive infinity, used to represent an unbounded value in computations." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_is_equal.json b/definitions/standard/runtime_definition/number/std_number_is_equal.proto.json similarity index 67% rename from definitions/standard/runtime_definition/number/std_number_is_equal.json rename to definitions/standard/runtime_definition/number/std_number_is_equal.proto.json index 2cc401f..73a51a4 100644 --- a/definitions/standard/runtime_definition/number/std_number_is_equal.json +++ b/definitions/standard/runtime_definition/number/std_number_is_equal.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::is_equal", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::is_equal", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "first", - "default_value": null, + "runtimeName": "first", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "second", - "default_value": null, + "runtimeName": "second", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "BOOLEAN" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "BOOLEAN" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Returns true if the first number is equal to the second number, otherwise false." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_is_greater.json b/definitions/standard/runtime_definition/number/std_number_is_greater.proto.json similarity index 70% rename from definitions/standard/runtime_definition/number/std_number_is_greater.json rename to definitions/standard/runtime_definition/number/std_number_is_greater.proto.json index 7fad773..d556a9e 100644 --- a/definitions/standard/runtime_definition/number/std_number_is_greater.json +++ b/definitions/standard/runtime_definition/number/std_number_is_greater.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::is_greater", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::is_greater", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "first", - "default_value": null, + "runtimeName": "first", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "second", - "default_value": null, + "runtimeName": "second", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "BOOLEAN" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "BOOLEAN" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Returns true if the first numeric input is greater than the second; otherwise, returns false." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_is_less.json b/definitions/standard/runtime_definition/number/std_number_is_less.proto.json similarity index 70% rename from definitions/standard/runtime_definition/number/std_number_is_less.json rename to definitions/standard/runtime_definition/number/std_number_is_less.proto.json index 41d8d9d..35367b0 100644 --- a/definitions/standard/runtime_definition/number/std_number_is_less.json +++ b/definitions/standard/runtime_definition/number/std_number_is_less.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::is_less", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::is_less", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "first", - "default_value": null, + "runtimeName": "first", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "second", - "default_value": null, + "runtimeName": "second", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "BOOLEAN" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "BOOLEAN" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Returns true if the first numeric input is less than the second; otherwise, returns false." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_is_positive.json b/definitions/standard/runtime_definition/number/std_number_is_positive.proto.json similarity index 67% rename from definitions/standard/runtime_definition/number/std_number_is_positive.json rename to definitions/standard/runtime_definition/number/std_number_is_positive.proto.json index ebe629a..716e4fb 100644 --- a/definitions/standard/runtime_definition/number/std_number_is_positive.json +++ b/definitions/standard/runtime_definition/number/std_number_is_positive.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::is_positive", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::is_positive", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "BOOLEAN" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "BOOLEAN" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Evaluates the input number and returns true if it is positive (greater than zero), otherwise false." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_is_zero.json b/definitions/standard/runtime_definition/number/std_number_is_zero.proto.json similarity index 66% rename from definitions/standard/runtime_definition/number/std_number_is_zero.json rename to definitions/standard/runtime_definition/number/std_number_is_zero.proto.json index 7d2606a..0679916 100644 --- a/definitions/standard/runtime_definition/number/std_number_is_zero.json +++ b/definitions/standard/runtime_definition/number/std_number_is_zero.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::is_zero", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::is_zero", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "BOOLEAN" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "BOOLEAN" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Returns true if the input number is zero; otherwise, returns false." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_ln.json b/definitions/standard/runtime_definition/number/std_number_ln.proto.json similarity index 67% rename from definitions/standard/runtime_definition/number/std_number_ln.json rename to definitions/standard/runtime_definition/number/std_number_ln.proto.json index 4e71cc4..aa76672 100644 --- a/definitions/standard/runtime_definition/number/std_number_ln.json +++ b/definitions/standard/runtime_definition/number/std_number_ln.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::ln", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::ln", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Returns the natural logarithm of the given value." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_log.json b/definitions/standard/runtime_definition/number/std_number_log.proto.json similarity index 69% rename from definitions/standard/runtime_definition/number/std_number_log.json rename to definitions/standard/runtime_definition/number/std_number_log.proto.json index 00bbdd0..9b55962 100644 --- a/definitions/standard/runtime_definition/number/std_number_log.json +++ b/definitions/standard/runtime_definition/number/std_number_log.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::log", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::log", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "base", - "default_value": null, + "runtimeName": "base", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Returns the logarithm of the given value using the specified base." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_max.json b/definitions/standard/runtime_definition/number/std_number_max.proto.json similarity index 68% rename from definitions/standard/runtime_definition/number/std_number_max.json rename to definitions/standard/runtime_definition/number/std_number_max.proto.json index 44adb24..3a3888e 100644 --- a/definitions/standard/runtime_definition/number/std_number_max.json +++ b/definitions/standard/runtime_definition/number/std_number_max.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::max", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::max", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "first", - "default_value": null, + "runtimeName": "first", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "second", - "default_value": null, + "runtimeName": "second", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Compares two numbers and returns the maximum value." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_min.json b/definitions/standard/runtime_definition/number/std_number_min.proto.json similarity index 68% rename from definitions/standard/runtime_definition/number/std_number_min.json rename to definitions/standard/runtime_definition/number/std_number_min.proto.json index b307e3f..1e3c3bb 100644 --- a/definitions/standard/runtime_definition/number/std_number_min.json +++ b/definitions/standard/runtime_definition/number/std_number_min.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::min", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::min", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "first", - "default_value": null, + "runtimeName": "first", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "second", - "default_value": null, + "runtimeName": "second", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Compares two numbers and returns the minimum value." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_modulo.json b/definitions/standard/runtime_definition/number/std_number_modulo.proto.json similarity index 70% rename from definitions/standard/runtime_definition/number/std_number_modulo.json rename to definitions/standard/runtime_definition/number/std_number_modulo.proto.json index 149c154..db358c7 100644 --- a/definitions/standard/runtime_definition/number/std_number_modulo.json +++ b/definitions/standard/runtime_definition/number/std_number_modulo.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::modulo", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::modulo", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "first", - "default_value": null, + "runtimeName": "first", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "second", - "default_value": null, + "runtimeName": "second", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Computes the modulus (remainder) of dividing the first numeric input by the second." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_multiply.json b/definitions/standard/runtime_definition/number/std_number_multiply.proto.json similarity index 67% rename from definitions/standard/runtime_definition/number/std_number_multiply.json rename to definitions/standard/runtime_definition/number/std_number_multiply.proto.json index f4ca864..2f25da7 100644 --- a/definitions/standard/runtime_definition/number/std_number_multiply.json +++ b/definitions/standard/runtime_definition/number/std_number_multiply.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::multiply", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::multiply", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "first", - "default_value": null, + "runtimeName": "first", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "second", - "default_value": null, + "runtimeName": "second", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Takes two numeric inputs and returns their product." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_negate.json b/definitions/standard/runtime_definition/number/std_number_negate.proto.json similarity index 65% rename from definitions/standard/runtime_definition/number/std_number_negate.json rename to definitions/standard/runtime_definition/number/std_number_negate.proto.json index 6cb68f8..c130a3d 100644 --- a/definitions/standard/runtime_definition/number/std_number_negate.json +++ b/definitions/standard/runtime_definition/number/std_number_negate.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::negate", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::negate", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Calculates the additive inverse of the given number." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_pi.json b/definitions/standard/runtime_definition/number/std_number_pi.proto.json similarity index 61% rename from definitions/standard/runtime_definition/number/std_number_pi.json rename to definitions/standard/runtime_definition/number/std_number_pi.proto.json index b2510b8..95f5ede 100644 --- a/definitions/standard/runtime_definition/number/std_number_pi.json +++ b/definitions/standard/runtime_definition/number/std_number_pi.proto.json @@ -1,13 +1,11 @@ { - "runtime_name": "std::number::pi", - "runtime_parameter_definitions": [], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "runtimeName": "std::number::pi", + "runtimeParameterDefinitions": [], + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -26,5 +24,5 @@ "content": "Provides the constant value of pi, approximately 3.14159, used in many mathematical calculations." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_random_number.json b/definitions/standard/runtime_definition/number/std_number_random_number.proto.json similarity index 70% rename from definitions/standard/runtime_definition/number/std_number_random_number.json rename to definitions/standard/runtime_definition/number/std_number_random_number.proto.json index 8c835db..98fa68a 100644 --- a/definitions/standard/runtime_definition/number/std_number_random_number.json +++ b/definitions/standard/runtime_definition/number/std_number_random_number.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::random_number", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::random_number", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "min", - "default_value": null, + "runtimeName": "min", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "max", - "default_value": null, + "runtimeName": "max", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Returns a randomly generated number within the given range, inclusive of both minimum and maximum." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_root.json b/definitions/standard/runtime_definition/number/std_number_root.proto.json similarity index 69% rename from definitions/standard/runtime_definition/number/std_number_root.json rename to definitions/standard/runtime_definition/number/std_number_root.proto.json index b4fe321..8874554 100644 --- a/definitions/standard/runtime_definition/number/std_number_root.json +++ b/definitions/standard/runtime_definition/number/std_number_root.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::root", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::root", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "root_exponent", - "default_value": null, + "runtimeName": "root_exponent", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Calculates the nth root of the input number, where n is specified by the root exponent." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_round.json b/definitions/standard/runtime_definition/number/std_number_round.proto.json similarity index 69% rename from definitions/standard/runtime_definition/number/std_number_round.json rename to definitions/standard/runtime_definition/number/std_number_round.proto.json index fa4b322..6a3ecfb 100644 --- a/definitions/standard/runtime_definition/number/std_number_round.json +++ b/definitions/standard/runtime_definition/number/std_number_round.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::round", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::round", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "decimals", - "default_value": null, + "runtimeName": "decimals", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Performs standard rounding on the given value, rounding up or down depending on the fractional component." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_round_down.json b/definitions/standard/runtime_definition/number/std_number_round_down.proto.json similarity index 69% rename from definitions/standard/runtime_definition/number/std_number_round_down.json rename to definitions/standard/runtime_definition/number/std_number_round_down.proto.json index f7a5c64..655ece3 100644 --- a/definitions/standard/runtime_definition/number/std_number_round_down.json +++ b/definitions/standard/runtime_definition/number/std_number_round_down.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::round_down", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::round_down", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "decimals", - "default_value": null, + "runtimeName": "decimals", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Performs rounding on the given value, always rounding down to the nearest value at the given decimal precision." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_round_up.json b/definitions/standard/runtime_definition/number/std_number_round_up.proto.json similarity index 69% rename from definitions/standard/runtime_definition/number/std_number_round_up.json rename to definitions/standard/runtime_definition/number/std_number_round_up.proto.json index 3ec8b2e..358041f 100644 --- a/definitions/standard/runtime_definition/number/std_number_round_up.json +++ b/definitions/standard/runtime_definition/number/std_number_round_up.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::round_up", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::round_up", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "decimals", - "default_value": null, + "runtimeName": "decimals", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Performs rounding on the given value, always rounding up to the nearest value at the given decimal precision." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_sin.json b/definitions/standard/runtime_definition/number/std_number_sin.proto.json similarity index 69% rename from definitions/standard/runtime_definition/number/std_number_sin.json rename to definitions/standard/runtime_definition/number/std_number_sin.proto.json index 3153cb4..14412fe 100644 --- a/definitions/standard/runtime_definition/number/std_number_sin.json +++ b/definitions/standard/runtime_definition/number/std_number_sin.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::sin", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::sin", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "min", - "default_value": null, + "runtimeName": "min", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "max", - "default_value": null, + "runtimeName": "max", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Returns a pseudo-random number between the given minimum and maximum values." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_sinh.json b/definitions/standard/runtime_definition/number/std_number_sinh.proto.json similarity index 66% rename from definitions/standard/runtime_definition/number/std_number_sinh.json rename to definitions/standard/runtime_definition/number/std_number_sinh.proto.json index 4961283..d6dcaf3 100644 --- a/definitions/standard/runtime_definition/number/std_number_sinh.json +++ b/definitions/standard/runtime_definition/number/std_number_sinh.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::sinh", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::sinh", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Calculates the hyperbolic sine (sinh) of the input value." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_square.json b/definitions/standard/runtime_definition/number/std_number_square.proto.json similarity index 66% rename from definitions/standard/runtime_definition/number/std_number_square.json rename to definitions/standard/runtime_definition/number/std_number_square.proto.json index aa74d2b..8010736 100644 --- a/definitions/standard/runtime_definition/number/std_number_square.json +++ b/definitions/standard/runtime_definition/number/std_number_square.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::square", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::square", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Calculates the value multiplied by itself, effectively raising it to the power of 2." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_square_root.json b/definitions/standard/runtime_definition/number/std_number_square_root.proto.json similarity index 65% rename from definitions/standard/runtime_definition/number/std_number_square_root.json rename to definitions/standard/runtime_definition/number/std_number_square_root.proto.json index 9602df2..cb00954 100644 --- a/definitions/standard/runtime_definition/number/std_number_square_root.json +++ b/definitions/standard/runtime_definition/number/std_number_square_root.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::square_root", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::square_root", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Calculates the positive square root of the input number." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_subtract.json b/definitions/standard/runtime_definition/number/std_number_subtract.proto.json similarity index 69% rename from definitions/standard/runtime_definition/number/std_number_subtract.json rename to definitions/standard/runtime_definition/number/std_number_subtract.proto.json index 462c3ef..0a22bac 100644 --- a/definitions/standard/runtime_definition/number/std_number_subtract.json +++ b/definitions/standard/runtime_definition/number/std_number_subtract.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::subtract", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::subtract", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "first", - "default_value": null, + "runtimeName": "first", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "second", - "default_value": null, + "runtimeName": "second", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Returns the result of subtracting the second numeric input from the first." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/number/std_number_tan.json b/definitions/standard/runtime_definition/number/std_number_tan.proto.json similarity index 66% rename from definitions/standard/runtime_definition/number/std_number_tan.json rename to definitions/standard/runtime_definition/number/std_number_tan.proto.json index 193c317..b330ca9 100644 --- a/definitions/standard/runtime_definition/number/std_number_tan.json +++ b/definitions/standard/runtime_definition/number/std_number_tan.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::number::tan", - "runtime_parameter_definitions": [ + "runtimeName": "std::number::tan", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "radians", - "default_value": null, + "runtimeName": "radians", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Calculates the tangent value of the input angle measured in radians." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/object/std_object_contains_key.json b/definitions/standard/runtime_definition/object/std_object_contains_key.proto.json similarity index 69% rename from definitions/standard/runtime_definition/object/std_object_contains_key.json rename to definitions/standard/runtime_definition/object/std_object_contains_key.proto.json index 052ae0c..9f80cd1 100644 --- a/definitions/standard/runtime_definition/object/std_object_contains_key.json +++ b/definitions/standard/runtime_definition/object/std_object_contains_key.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::object::contains_key", - "runtime_parameter_definitions": [ + "runtimeName": "std::object::contains_key", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "OBJECT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "OBJECT" }, - "runtime_name": "object", - "default_value": null, + "runtimeName": "object", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "key", - "default_value": null, + "runtimeName": "key", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "BOOLEAN" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "BOOLEAN" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Returns true if the given key is a property of the object; otherwise, returns false." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/object/std_object_keys.json b/definitions/standard/runtime_definition/object/std_object_keys.proto.json similarity index 55% rename from definitions/standard/runtime_definition/object/std_object_keys.json rename to definitions/standard/runtime_definition/object/std_object_keys.proto.json index f204270..c23593c 100644 --- a/definitions/standard/runtime_definition/object/std_object_keys.json +++ b/definitions/standard/runtime_definition/object/std_object_keys.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::object::keys", - "runtime_parameter_definitions": [ + "runtimeName": "std::object::keys", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "OBJECT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "OBJECT" }, - "runtime_name": "object", - "default_value": null, + "runtimeName": "object", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,28 +27,24 @@ ] } ], - "return_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "DataTypeIdentifier": "TEXT" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } + "returnTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "dataTypeIdentifier": "TEXT" + } + ], + "target": "T", + "genericCombinations": [] + } + ] } }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -69,5 +63,5 @@ "content": "Returns an array containing all enumerable property names (keys) of the specified object." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/object/std_object_set.json b/definitions/standard/runtime_definition/object/std_object_set.proto.json similarity index 71% rename from definitions/standard/runtime_definition/object/std_object_set.json rename to definitions/standard/runtime_definition/object/std_object_set.proto.json index 268e6e9..a466d5a 100644 --- a/definitions/standard/runtime_definition/object/std_object_set.json +++ b/definitions/standard/runtime_definition/object/std_object_set.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::object::set", - "runtime_parameter_definitions": [ + "runtimeName": "std::object::set", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "OBJECT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "OBJECT" }, - "runtime_name": "object", - "default_value": null, + "runtimeName": "object", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "key", - "default_value": null, + "runtimeName": "key", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] }, { - "data_type_identifier": { - "type": { - "GenericKey": "I" - } + "dataTypeIdentifier": { + "genericKey": "I" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -83,13 +77,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "OBJECT" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "OBJECT" }, - "throws_error": false, - "generic_keys": [ + "throwsError": false, + "genericKeys": [ "I" ], "name": [ @@ -110,5 +102,5 @@ "content": "Returns a new object with the specified key set to the given value." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/object/std_object_size.json b/definitions/standard/runtime_definition/object/std_object_size.proto.json similarity index 68% rename from definitions/standard/runtime_definition/object/std_object_size.json rename to definitions/standard/runtime_definition/object/std_object_size.proto.json index 4da552c..635a4ed 100644 --- a/definitions/standard/runtime_definition/object/std_object_size.json +++ b/definitions/standard/runtime_definition/object/std_object_size.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::object::size", - "runtime_parameter_definitions": [ + "runtimeName": "std::object::size", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "OBJECT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "OBJECT" }, - "runtime_name": "object", - "default_value": null, + "runtimeName": "object", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Returns an integer count of all enumerable property keys in the specified object." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_append.json b/definitions/standard/runtime_definition/text/std_text_append.proto.json similarity index 70% rename from definitions/standard/runtime_definition/text/std_text_append.json rename to definitions/standard/runtime_definition/text/std_text_append.proto.json index 0daab25..603ac17 100644 --- a/definitions/standard/runtime_definition/text/std_text_append.json +++ b/definitions/standard/runtime_definition/text/std_text_append.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::text::append", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::append", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "suffix", - "default_value": null, + "runtimeName": "suffix", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Returns a new text string consisting of the original text followed by the specified suffix." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_as_bytes.json b/definitions/standard/runtime_definition/text/std_text_as_bytes.proto.json similarity index 53% rename from definitions/standard/runtime_definition/text/std_text_as_bytes.json rename to definitions/standard/runtime_definition/text/std_text_as_bytes.proto.json index 390ab26..c73b9b0 100644 --- a/definitions/standard/runtime_definition/text/std_text_as_bytes.json +++ b/definitions/standard/runtime_definition/text/std_text_as_bytes.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::text::as_bytes", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::as_bytes", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,28 +27,24 @@ ] } ], - "return_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "DataTypeIdentifier": "NUMBER" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } + "returnTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "dataTypeIdentifier": "NUMBER" + } + ], + "target": "T", + "genericCombinations": [] + } + ] } }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -69,5 +63,5 @@ "content": "Returns an array of bytes representing the UTF-8 encoding of the given text." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_at.json b/definitions/standard/runtime_definition/text/std_text_at.proto.json similarity index 70% rename from definitions/standard/runtime_definition/text/std_text_at.json rename to definitions/standard/runtime_definition/text/std_text_at.proto.json index 19b43ae..a4f4a20 100644 --- a/definitions/standard/runtime_definition/text/std_text_at.json +++ b/definitions/standard/runtime_definition/text/std_text_at.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::text::at", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::at", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "index", - "default_value": null, + "runtimeName": "index", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Retrieves a single character from the input text based on the provided zero-based index." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_byte_size.json b/definitions/standard/runtime_definition/text/std_text_byte_size.proto.json similarity index 68% rename from definitions/standard/runtime_definition/text/std_text_byte_size.json rename to definitions/standard/runtime_definition/text/std_text_byte_size.proto.json index a57bde5..42580e6 100644 --- a/definitions/standard/runtime_definition/text/std_text_byte_size.json +++ b/definitions/standard/runtime_definition/text/std_text_byte_size.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::text::byte_size", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::byte_size", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Computes the size in bytes of the provided text string, typically by counting UTF-8 encoded bytes." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_capitalize.json b/definitions/standard/runtime_definition/text/std_text_capitalize.proto.json similarity index 67% rename from definitions/standard/runtime_definition/text/std_text_capitalize.json rename to definitions/standard/runtime_definition/text/std_text_capitalize.proto.json index 827e5ca..26bb21a 100644 --- a/definitions/standard/runtime_definition/text/std_text_capitalize.json +++ b/definitions/standard/runtime_definition/text/std_text_capitalize.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::text::capitalize", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::capitalize", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Returns a new text string with the first letter capitalized." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_chars.json b/definitions/standard/runtime_definition/text/std_text_chars.proto.json similarity index 55% rename from definitions/standard/runtime_definition/text/std_text_chars.json rename to definitions/standard/runtime_definition/text/std_text_chars.proto.json index 91076b7..6642542 100644 --- a/definitions/standard/runtime_definition/text/std_text_chars.json +++ b/definitions/standard/runtime_definition/text/std_text_chars.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::text::chars", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::chars", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,28 +27,24 @@ ] } ], - "return_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "DataTypeIdentifier": "TEXT" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } + "returnTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "dataTypeIdentifier": "TEXT" + } + ], + "target": "T", + "genericCombinations": [] + } + ] } }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -69,5 +63,5 @@ "content": "Creates an array where each element is a single character from the original text." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_contains.json b/definitions/standard/runtime_definition/text/std_text_contains.proto.json similarity index 68% rename from definitions/standard/runtime_definition/text/std_text_contains.json rename to definitions/standard/runtime_definition/text/std_text_contains.proto.json index 4dfc7ec..bb2a7f7 100644 --- a/definitions/standard/runtime_definition/text/std_text_contains.json +++ b/definitions/standard/runtime_definition/text/std_text_contains.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::text::contains", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::contains", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "substring", - "default_value": null, + "runtimeName": "substring", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "BOOLEAN" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "BOOLEAN" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Returns true if the substring is found anywhere in the main text; otherwise, returns false." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_decode.json b/definitions/standard/runtime_definition/text/std_text_decode.proto.json similarity index 67% rename from definitions/standard/runtime_definition/text/std_text_decode.json rename to definitions/standard/runtime_definition/text/std_text_decode.proto.json index 0632159..5fea080 100644 --- a/definitions/standard/runtime_definition/text/std_text_decode.json +++ b/definitions/standard/runtime_definition/text/std_text_decode.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::text::decode", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::decode", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT_ENCODING" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT_ENCODING" }, - "runtime_name": "encoding", - "default_value": null, + "runtimeName": "encoding", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Decodes the input text from the specified encoding format." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_encode.json b/definitions/standard/runtime_definition/text/std_text_encode.proto.json similarity index 68% rename from definitions/standard/runtime_definition/text/std_text_encode.json rename to definitions/standard/runtime_definition/text/std_text_encode.proto.json index 0a9fc13..606f101 100644 --- a/definitions/standard/runtime_definition/text/std_text_encode.json +++ b/definitions/standard/runtime_definition/text/std_text_encode.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::text::encode", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::encode", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT_ENCODING" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT_ENCODING" }, - "runtime_name": "encoding", - "default_value": null, + "runtimeName": "encoding", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Transforms the given text string into a representation encoded by the specified encoding scheme." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_ends_with.json b/definitions/standard/runtime_definition/text/std_text_ends_with.proto.json similarity index 67% rename from definitions/standard/runtime_definition/text/std_text_ends_with.json rename to definitions/standard/runtime_definition/text/std_text_ends_with.proto.json index 2c386ba..a6f72d2 100644 --- a/definitions/standard/runtime_definition/text/std_text_ends_with.json +++ b/definitions/standard/runtime_definition/text/std_text_ends_with.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::text::ends_with", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::ends_with", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "suffix", - "default_value": null, + "runtimeName": "suffix", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "BOOLEAN" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "BOOLEAN" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Returns true if the input text ends with the given suffix; otherwise, returns false." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_from_ascii.json b/definitions/standard/runtime_definition/text/std_text_from_ascii.proto.json similarity index 53% rename from definitions/standard/runtime_definition/text/std_text_from_ascii.json rename to definitions/standard/runtime_definition/text/std_text_from_ascii.proto.json index 0ec5437..2f31735 100644 --- a/definitions/standard/runtime_definition/text/std_text_from_ascii.json +++ b/definitions/standard/runtime_definition/text/std_text_from_ascii.proto.json @@ -1,29 +1,25 @@ { - "runtime_name": "std::text::from_ascii", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::from_ascii", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "DataTypeIdentifier": "NUMBER" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } + "dataTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "dataTypeIdentifier": "NUMBER" + } + ], + "target": "T", + "genericCombinations": [] + } + ] } }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -44,13 +40,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -69,5 +63,5 @@ "content": "Takes an array of numbers where each number is an ASCII code, and returns the string they represent." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_hex.json b/definitions/standard/runtime_definition/text/std_text_hex.proto.json similarity index 70% rename from definitions/standard/runtime_definition/text/std_text_hex.json rename to definitions/standard/runtime_definition/text/std_text_hex.proto.json index 51b0901..d233d71 100644 --- a/definitions/standard/runtime_definition/text/std_text_hex.json +++ b/definitions/standard/runtime_definition/text/std_text_hex.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::text::hex", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::hex", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Returns a string containing the hexadecimal values corresponding to each character of the input text." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_index_of.json b/definitions/standard/runtime_definition/text/std_text_index_of.proto.json similarity index 68% rename from definitions/standard/runtime_definition/text/std_text_index_of.json rename to definitions/standard/runtime_definition/text/std_text_index_of.proto.json index 8157519..aa7be9e 100644 --- a/definitions/standard/runtime_definition/text/std_text_index_of.json +++ b/definitions/standard/runtime_definition/text/std_text_index_of.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::text::index_of", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::index_of", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "substring", - "default_value": null, + "runtimeName": "substring", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Returns the zero-based index of the first occurrence of the substring in the text. Returns -1 if the substring is not found." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_insert.json b/definitions/standard/runtime_definition/text/std_text_insert.proto.json similarity index 71% rename from definitions/standard/runtime_definition/text/std_text_insert.json rename to definitions/standard/runtime_definition/text/std_text_insert.proto.json index fe51dae..14f154d 100644 --- a/definitions/standard/runtime_definition/text/std_text_insert.json +++ b/definitions/standard/runtime_definition/text/std_text_insert.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::text::insert", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::insert", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "position", - "default_value": null, + "runtimeName": "position", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "text", - "default_value": null, + "runtimeName": "text", + "defaultValue": null, "name": [ { "code": "en-US", @@ -83,13 +77,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -108,5 +100,5 @@ "content": "Returns a new string where the provided text is inserted at the zero-based position index within the original text." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_is_equal.json b/definitions/standard/runtime_definition/text/std_text_is_equal.proto.json similarity index 68% rename from definitions/standard/runtime_definition/text/std_text_is_equal.json rename to definitions/standard/runtime_definition/text/std_text_is_equal.proto.json index 30fb94c..e8edad2 100644 --- a/definitions/standard/runtime_definition/text/std_text_is_equal.json +++ b/definitions/standard/runtime_definition/text/std_text_is_equal.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::text::is_equal", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::is_equal", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "first", - "default_value": null, + "runtimeName": "first", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "second", - "default_value": null, + "runtimeName": "second", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "BOOLEAN" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "BOOLEAN" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Determines if the two given text inputs are exactly the same, returning true if equal, false otherwise." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_length.json b/definitions/standard/runtime_definition/text/std_text_length.proto.json similarity index 66% rename from definitions/standard/runtime_definition/text/std_text_length.json rename to definitions/standard/runtime_definition/text/std_text_length.proto.json index a92fe6a..c07bc67 100644 --- a/definitions/standard/runtime_definition/text/std_text_length.json +++ b/definitions/standard/runtime_definition/text/std_text_length.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::text::length", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::length", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Computes the length of the input string in terms of characters." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_lowercase.json b/definitions/standard/runtime_definition/text/std_text_lowercase.proto.json similarity index 67% rename from definitions/standard/runtime_definition/text/std_text_lowercase.json rename to definitions/standard/runtime_definition/text/std_text_lowercase.proto.json index 96707fd..b971823 100644 --- a/definitions/standard/runtime_definition/text/std_text_lowercase.json +++ b/definitions/standard/runtime_definition/text/std_text_lowercase.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::text::lowercase", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::lowercase", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Returns a new text string with all characters converted to lowercase." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_octal.json b/definitions/standard/runtime_definition/text/std_text_octal.proto.json similarity index 70% rename from definitions/standard/runtime_definition/text/std_text_octal.json rename to definitions/standard/runtime_definition/text/std_text_octal.proto.json index 333cda8..d08926a 100644 --- a/definitions/standard/runtime_definition/text/std_text_octal.json +++ b/definitions/standard/runtime_definition/text/std_text_octal.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::text::octal", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::octal", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Returns a string containing the octal values corresponding to each character of the input text." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_prepend.json b/definitions/standard/runtime_definition/text/std_text_prepend.proto.json similarity index 70% rename from definitions/standard/runtime_definition/text/std_text_prepend.json rename to definitions/standard/runtime_definition/text/std_text_prepend.proto.json index ace63d7..7fc90cf 100644 --- a/definitions/standard/runtime_definition/text/std_text_prepend.json +++ b/definitions/standard/runtime_definition/text/std_text_prepend.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::text::prepend", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::prepend", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "prefix", - "default_value": null, + "runtimeName": "prefix", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Returns a new text string consisting of the specified prefix followed by the original text." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_remove.json b/definitions/standard/runtime_definition/text/std_text_remove.proto.json similarity index 70% rename from definitions/standard/runtime_definition/text/std_text_remove.json rename to definitions/standard/runtime_definition/text/std_text_remove.proto.json index acc3709..24f5ed1 100644 --- a/definitions/standard/runtime_definition/text/std_text_remove.json +++ b/definitions/standard/runtime_definition/text/std_text_remove.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::text::remove", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::remove", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "start", - "default_value": null, + "runtimeName": "start", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "NUMBER" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "NUMBER" }, - "runtime_name": "end", - "default_value": null, + "runtimeName": "end", + "defaultValue": null, "name": [ { "code": "en-US", @@ -83,13 +77,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -108,5 +100,5 @@ "content": "Returns a new string with characters removed from start up to but not including end." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_replace.json b/definitions/standard/runtime_definition/text/std_text_replace.proto.json similarity index 71% rename from definitions/standard/runtime_definition/text/std_text_replace.json rename to definitions/standard/runtime_definition/text/std_text_replace.proto.json index 783e228..9919728 100644 --- a/definitions/standard/runtime_definition/text/std_text_replace.json +++ b/definitions/standard/runtime_definition/text/std_text_replace.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::text::replace", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::replace", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "old", - "default_value": null, + "runtimeName": "old", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "new", - "default_value": null, + "runtimeName": "new", + "defaultValue": null, "name": [ { "code": "en-US", @@ -83,13 +77,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -108,5 +100,5 @@ "content": "Returns a new string where every instance of the old substring is replaced by the new substring." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_replace_first.json b/definitions/standard/runtime_definition/text/std_text_replace_first.proto.json similarity index 72% rename from definitions/standard/runtime_definition/text/std_text_replace_first.json rename to definitions/standard/runtime_definition/text/std_text_replace_first.proto.json index b81dbc9..39ed3ce 100644 --- a/definitions/standard/runtime_definition/text/std_text_replace_first.json +++ b/definitions/standard/runtime_definition/text/std_text_replace_first.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::text::replace_first", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::replace_first", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "old", - "default_value": null, + "runtimeName": "old", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "new", - "default_value": null, + "runtimeName": "new", + "defaultValue": null, "name": [ { "code": "en-US", @@ -83,13 +77,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -108,5 +100,5 @@ "content": "Returns a new string where only the first instance of the old substring is replaced by the new substring." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_replace_last.json b/definitions/standard/runtime_definition/text/std_text_replace_last.proto.json similarity index 71% rename from definitions/standard/runtime_definition/text/std_text_replace_last.json rename to definitions/standard/runtime_definition/text/std_text_replace_last.proto.json index 7eba508..b833536 100644 --- a/definitions/standard/runtime_definition/text/std_text_replace_last.json +++ b/definitions/standard/runtime_definition/text/std_text_replace_last.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::text::replace_last", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::replace_last", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "old", - "default_value": null, + "runtimeName": "old", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "new", - "default_value": null, + "runtimeName": "new", + "defaultValue": null, "name": [ { "code": "en-US", @@ -83,13 +77,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -108,5 +100,5 @@ "content": "Returns a new string where only the last instance of the old substring is replaced by the new substring." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_reverse.json b/definitions/standard/runtime_definition/text/std_text_reverse.proto.json similarity index 65% rename from definitions/standard/runtime_definition/text/std_text_reverse.json rename to definitions/standard/runtime_definition/text/std_text_reverse.proto.json index b17de71..06eb7a1 100644 --- a/definitions/standard/runtime_definition/text/std_text_reverse.json +++ b/definitions/standard/runtime_definition/text/std_text_reverse.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::text::reverse", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::reverse", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Returns a new string with the characters of the input text in reverse order." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_split.json b/definitions/standard/runtime_definition/text/std_text_split.proto.json similarity index 59% rename from definitions/standard/runtime_definition/text/std_text_split.json rename to definitions/standard/runtime_definition/text/std_text_split.proto.json index 2acc224..6827be2 100644 --- a/definitions/standard/runtime_definition/text/std_text_split.json +++ b/definitions/standard/runtime_definition/text/std_text_split.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::text::split", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::split", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "delimiter", - "default_value": null, + "runtimeName": "delimiter", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,28 +52,24 @@ ] } ], - "return_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "DataTypeIdentifier": "TEXT" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } + "returnTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "dataTypeIdentifier": "TEXT" + } + ], + "target": "T", + "genericCombinations": [] + } + ] } }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -96,5 +88,5 @@ "content": "Returns an array of substrings obtained by splitting the input text at each occurrence of the delimiter." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_start_with.json b/definitions/standard/runtime_definition/text/std_text_start_with.proto.json similarity index 67% rename from definitions/standard/runtime_definition/text/std_text_start_with.json rename to definitions/standard/runtime_definition/text/std_text_start_with.proto.json index 54d8074..8ec5aca 100644 --- a/definitions/standard/runtime_definition/text/std_text_start_with.json +++ b/definitions/standard/runtime_definition/text/std_text_start_with.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::text::start_with", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::start_with", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] }, { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "prefix", - "default_value": null, + "runtimeName": "prefix", + "defaultValue": null, "name": [ { "code": "en-US", @@ -56,13 +52,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "BOOLEAN" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "BOOLEAN" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -81,5 +75,5 @@ "content": "Returns true if the input text begins with the given prefix; otherwise, returns false." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_swapcase.json b/definitions/standard/runtime_definition/text/std_text_swapcase.proto.json similarity index 69% rename from definitions/standard/runtime_definition/text/std_text_swapcase.json rename to definitions/standard/runtime_definition/text/std_text_swapcase.proto.json index b6be9b0..53ca6c7 100644 --- a/definitions/standard/runtime_definition/text/std_text_swapcase.json +++ b/definitions/standard/runtime_definition/text/std_text_swapcase.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::text::swapcase", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::swapcase", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Returns a new text string with the case of each character inverted." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_to_ascii.json b/definitions/standard/runtime_definition/text/std_text_to_ascii.proto.json similarity index 55% rename from definitions/standard/runtime_definition/text/std_text_to_ascii.json rename to definitions/standard/runtime_definition/text/std_text_to_ascii.proto.json index ec054bb..38ac46e 100644 --- a/definitions/standard/runtime_definition/text/std_text_to_ascii.json +++ b/definitions/standard/runtime_definition/text/std_text_to_ascii.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::text::to_ascii", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::to_ascii", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,28 +27,24 @@ ] } ], - "return_type_identifier": { - "type": { - "GenericType": { - "data_type_identifier": "ARRAY", - "generic_mappers": [ - { - "source": [ - { - "type": { - "DataTypeIdentifier": "NUMBER" - } - } - ], - "target": "T", - "generic_combinations": [] - } - ] - } + "returnTypeIdentifier": { + "genericType": { + "dataTypeIdentifier": "ARRAY", + "genericMappers": [ + { + "source": [ + { + "dataTypeIdentifier": "NUMBER" + } + ], + "target": "T", + "genericCombinations": [] + } + ] } }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -69,5 +63,5 @@ "content": "Returns an array of numbers where each number represents the ASCII code of the corresponding character in the input text." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_trim.json b/definitions/standard/runtime_definition/text/std_text_trim.proto.json similarity index 68% rename from definitions/standard/runtime_definition/text/std_text_trim.json rename to definitions/standard/runtime_definition/text/std_text_trim.proto.json index d387f0e..6b9ce18 100644 --- a/definitions/standard/runtime_definition/text/std_text_trim.json +++ b/definitions/standard/runtime_definition/text/std_text_trim.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::text::trim", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::trim", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Returns a new string with all leading and trailing whitespace characters removed from the input text." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/definitions/standard/runtime_definition/text/std_text_uppercase.json b/definitions/standard/runtime_definition/text/std_text_uppercase.proto.json similarity index 67% rename from definitions/standard/runtime_definition/text/std_text_uppercase.json rename to definitions/standard/runtime_definition/text/std_text_uppercase.proto.json index dc2a219..c285eea 100644 --- a/definitions/standard/runtime_definition/text/std_text_uppercase.json +++ b/definitions/standard/runtime_definition/text/std_text_uppercase.proto.json @@ -1,14 +1,12 @@ { - "runtime_name": "std::text::uppercase", - "runtime_parameter_definitions": [ + "runtimeName": "std::text::uppercase", + "runtimeParameterDefinitions": [ { - "data_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "dataTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "runtime_name": "value", - "default_value": null, + "runtimeName": "value", + "defaultValue": null, "name": [ { "code": "en-US", @@ -29,13 +27,11 @@ ] } ], - "return_type_identifier": { - "type": { - "DataTypeIdentifier": "TEXT" - } + "returnTypeIdentifier": { + "dataTypeIdentifier": "TEXT" }, - "throws_error": false, - "generic_keys": [], + "throwsError": false, + "genericKeys": [], "name": [ { "code": "en-US", @@ -54,5 +50,5 @@ "content": "Returns a new text string with all characters converted to uppercase." } ], - "deprecation_message": [] + "deprecationMessage": [] } \ No newline at end of file diff --git a/reader/rust/src/lib.rs b/reader/rust/src/lib.rs deleted file mode 100644 index ca52771..0000000 --- a/reader/rust/src/lib.rs +++ /dev/null @@ -1,2 +0,0 @@ -pub mod parser; -pub mod reader; diff --git a/reader/rust/src/parser.rs b/reader/rust/src/parser.rs deleted file mode 100644 index 10f1206..0000000 --- a/reader/rust/src/parser.rs +++ /dev/null @@ -1,124 +0,0 @@ -use crate::reader::{MetaType, Reader}; -use serde::Serialize; -use tucana::shared::{DefinitionDataType, FlowType, RuntimeFunctionDefinition}; - -#[derive(Serialize, Clone, Debug)] -pub struct DefinitionError { - pub definition: String, - pub definition_type: MetaType, - pub error: String, -} - -#[derive(Debug)] -pub struct Parser { - pub features: Vec, -} - -#[derive(Serialize, Clone, Debug)] -pub struct Feature { - pub name: String, - pub data_types: Vec, - pub flow_types: Vec, - pub runtime_functions: Vec, - pub errors: Vec, -} - -impl Feature { - fn new(name: String) -> Self { - Feature { - name, - data_types: Vec::new(), - flow_types: Vec::new(), - runtime_functions: Vec::new(), - errors: Vec::new(), - } - } -} - -impl Parser { - pub fn from_path(path: &str) -> Option { - let reader = Reader::from_path(path)?; - - Some(Self::from_reader(reader)) - } - - pub fn from_reader(reader: Reader) -> Self { - let mut features: Vec = vec![]; - - for meta in &reader.meta { - let feature = features.iter_mut().find(|f| f.name == meta.name); - - if let Some(existing) = feature { - Parser::append_meta(existing, meta); - } else { - let mut new_feature = Feature::new(meta.name.clone()); - Parser::append_meta(&mut new_feature, meta); - features.push(new_feature); - } - } - - Parser { features } - } - - pub fn extract_identifier(definition: &str, meta_type: MetaType) -> String { - let field_name = match meta_type { - MetaType::DataType | MetaType::FlowType => "identifier", - MetaType::RuntimeFunction => "runtime_name", - }; - - // Look for the field pattern: "field_name": "value" or "field_name":"value" - if let Some(start) = definition.find(&format!("\"{field_name}\"")) { - // Find the colon after the field name - if let Some(colon_pos) = definition[start..].find(':') { - let after_colon = &definition[start + colon_pos + 1..]; - - // Skip whitespace and find the opening quote - let trimmed = after_colon.trim_start(); - if let Some(stripped) = trimmed.strip_prefix('"') { - // Find the closing quote - if let Some(end_quote) = stripped.find('"') { - return trimmed[1..end_quote + 1].to_string(); - } - } - } - } - - // Fallback: return the whole definition if identifier can't be extracted - definition.to_string() - } - - fn append_meta(feature: &mut Feature, meta: &crate::reader::Meta) { - let definition = meta.definition_string.as_str(); - match meta.r#type { - MetaType::DataType => match serde_json::from_str::(definition) { - Ok(data_type) => feature.data_types.push(data_type), - Err(err) => feature.errors.push(DefinitionError { - definition: Parser::extract_identifier(definition, MetaType::DataType), - definition_type: MetaType::DataType, - error: err.to_string(), - }), - }, - MetaType::FlowType => match serde_json::from_str::(definition) { - Ok(flow_type) => feature.flow_types.push(flow_type), - Err(err) => feature.errors.push(DefinitionError { - definition: Parser::extract_identifier(definition, MetaType::FlowType), - definition_type: MetaType::FlowType, - error: err.to_string(), - }), - }, - MetaType::RuntimeFunction => { - match serde_json::from_str::(definition) { - Ok(func) => feature.runtime_functions.push(func), - Err(err) => feature.errors.push(DefinitionError { - definition: Parser::extract_identifier( - definition, - MetaType::RuntimeFunction, - ), - definition_type: MetaType::RuntimeFunction, - error: err.to_string(), - }), - } - } - } - } -} diff --git a/reader/ts/package-lock.json b/reader/ts/package-lock.json index c527f4a..3769f3c 100644 --- a/reader/ts/package-lock.json +++ b/reader/ts/package-lock.json @@ -8,9 +8,10 @@ "name": "@code0-tech/definition-reader", "version": "0.0.0", "dependencies": { - "@code0-tech/sagittarius-graphql-types": "^0.0.0-00f33663039d78ad59e95306730878c687de5c48", - "@code0-tech/tucana": "^0.0.37", + "@code0-tech/sagittarius-graphql-types": "^0.0.0-56198dce107a9c09cc5eca0773f239d9c3eba598", + "@code0-tech/tucana": "^0.0.39", "@protobuf-ts/runtime": "^2.11.1", + "@protobuf-ts/runtime-rpc": "^2.11.1", "vite-plugin-dts": "^4.5.4" }, "devDependencies": { @@ -66,14 +67,14 @@ } }, "node_modules/@code0-tech/sagittarius-graphql-types": { - "version": "0.0.0-00f33663039d78ad59e95306730878c687de5c48", - "resolved": "https://registry.npmjs.org/@code0-tech/sagittarius-graphql-types/-/sagittarius-graphql-types-0.0.0-00f33663039d78ad59e95306730878c687de5c48.tgz", - "integrity": "sha512-g8bv5KWq+c8jd9Gb+86O3TT/Dcvt2injJcZ5aFJkN8ZZz/4VsA0EcC3h/hCsoiBIEquvAdQQVFriNAbC0JrKRA==" + "version": "0.0.0-56198dce107a9c09cc5eca0773f239d9c3eba598", + "resolved": "https://registry.npmjs.org/@code0-tech/sagittarius-graphql-types/-/sagittarius-graphql-types-0.0.0-56198dce107a9c09cc5eca0773f239d9c3eba598.tgz", + "integrity": "sha512-95nHtvQb2W6iSk0SUyUOgEHE1RSqXDi0Ih1edscScKFFmJK1hWbdrvvsRPjQnTfZsieuvdXC9L2q/+SXIBFH7Q==" }, "node_modules/@code0-tech/tucana": { - "version": "0.0.37", - "resolved": "https://registry.npmjs.org/@code0-tech/tucana/-/tucana-0.0.37.tgz", - "integrity": "sha512-eluuVkN3z4sJ6W6j11VD0OEq/jZPG+kMGMDTr3mRaiHUxGt90lfsBlqyzfLBIUXV8Q4vYTh9G1HuhpGoyRSH1Q==", + "version": "0.0.39", + "resolved": "https://registry.npmjs.org/@code0-tech/tucana/-/tucana-0.0.39.tgz", + "integrity": "sha512-FZHPN0eGhmMLSaYPAE8fb1g9DS8P3JdacwUjRSiXeBVrOBs3EqT7zjcUnDLqZ8YeXY6/T+srFs3zeemjvicCTQ==", "license": "Apache-2.0" }, "node_modules/@esbuild/aix-ppc64": { @@ -617,6 +618,15 @@ "integrity": "sha512-KuDaT1IfHkugM2pyz+FwiY80ejWrkH1pAtOBOZFuR6SXEFTsnb/jiQWQ1rCIrcKx2BtyxnxW6BWwsVSA/Ie+WQ==", "license": "(Apache-2.0 AND BSD-3-Clause)" }, + "node_modules/@protobuf-ts/runtime-rpc": { + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/@protobuf-ts/runtime-rpc/-/runtime-rpc-2.11.1.tgz", + "integrity": "sha512-4CqqUmNA+/uMz00+d3CYKgElXO9VrEbucjnBFEjqI4GuDrEQ32MaI3q+9qPBvIGOlL4PmHXrzM32vBPWRhQKWQ==", + "license": "Apache-2.0", + "dependencies": { + "@protobuf-ts/runtime": "^2.11.1" + } + }, "node_modules/@rollup/pluginutils": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.3.0.tgz", diff --git a/reader/ts/package.json b/reader/ts/package.json index 2683eb8..6371eb2 100644 --- a/reader/ts/package.json +++ b/reader/ts/package.json @@ -6,7 +6,9 @@ "types": "./dist/index.d.ts", "type": "module", "scripts": { - "build": "npx vite build" + "build": "vite build", + "start": "node ./dist/index.js", + "build:and:run": "vite build && node ./dist/index.js" }, "author": "", "license": "", @@ -28,9 +30,10 @@ "access": "public" }, "dependencies": { - "@code0-tech/sagittarius-graphql-types": "^0.0.0-00f33663039d78ad59e95306730878c687de5c48", - "@code0-tech/tucana": "^0.0.37", + "@code0-tech/sagittarius-graphql-types": "^0.0.0-56198dce107a9c09cc5eca0773f239d9c3eba598", + "@code0-tech/tucana": "^0.0.39", "@protobuf-ts/runtime": "^2.11.1", + "@protobuf-ts/runtime-rpc": "^2.11.1", "vite-plugin-dts": "^4.5.4" } } diff --git a/reader/ts/src/index.ts b/reader/ts/src/index.ts index 2c5adf9..37023bf 100644 --- a/reader/ts/src/index.ts +++ b/reader/ts/src/index.ts @@ -1,2 +1,2 @@ -export { Definition } from './parser.ts'; +export { Definition } from './parser.js'; export type { Feature } from './types.ts'; diff --git a/reader/ts/src/mapper/dataTypeMapper.ts b/reader/ts/src/mapper/dataTypeMapper.ts index 81e7b88..9759a76 100644 --- a/reader/ts/src/mapper/dataTypeMapper.ts +++ b/reader/ts/src/mapper/dataTypeMapper.ts @@ -11,10 +11,11 @@ import { import { DataTypeIdentifier as TucanaDataTypeIdentifier, DefinitionDataType_Variant, DefinitionDataTypeRule, GenericMapper_GenericCombinationStrategy -} from "@code0-tech/tucana/pb/shared.data_type_pb.ts" -import {GenericMapper as TucanaGenericMapper} from "@code0-tech/tucana/pb/shared.data_type_pb.ts" -import {ConstructedDataTypes, getID} from "../parser.ts"; -import {getTranslationConnection} from "./translation.ts"; +} from "@code0-tech/tucana/pb/shared.data_type_pb.js" +import {GenericMapper as TucanaGenericMapper} from "@code0-tech/tucana/pb/shared.data_type_pb.js" +import {ConstructedDataTypes, getID} from "../parser.js"; +import {getTranslationConnection} from "./translation.js"; +import {Value} from "@code0-tech/tucana/pb/shared.struct_pb.js"; function getDataType(identifier: string, constructedDataTypes: ConstructedDataTypes): DataType | null { const dataType = constructedDataTypes.constructedDataTypes.find(dt => dt.identifier === identifier) @@ -67,7 +68,7 @@ function createRules(rule: DefinitionDataTypeRule[], constructedDataTypes: Const } case "itemOfCollection": { const ruleConfig: DataTypeRulesItemOfCollectionConfig = { - items: r.config.itemOfCollection.items, //TODO: This needs to be checked + items: r.config.itemOfCollection.items.map(valueToJSON), } const rule: DataTypeRule = { variant: DataTypeRulesVariant.ItemOfCollection, @@ -195,7 +196,7 @@ function getDataTypeIdentifier(identifier: TucanaDataTypeIdentifier | undefined, type: type } }), - sources: mapper.source.map(id => + sourceDataTypeIdentifiers: mapper.source.map(id => getDataTypeIdentifier(id, constructedDataTypes) ).filter(id => id != null), target: mapper.target, @@ -224,4 +225,27 @@ function getDataTypeIdentifier(identifier: TucanaDataTypeIdentifier | undefined, return null; } +// @ts-ignore +function valueToJSON(value: Value) { + switch (value.kind.oneofKind) { + case "nullValue": + return null + case "numberValue": + return value.kind.numberValue + case "stringValue": + return value.kind.stringValue + case "boolValue": + return value.kind.boolValue + case "structValue": + return Object.fromEntries( + // @ts-ignore + Object.entries(value.kind.structValue.fields).map(([k, v]) => { + return [k, valueToJSON(v)] + }) + ) + case "listValue": + return value.kind.listValue.values.map(valueToJSON) + } +} + export {getDataType, getDataTypeIdentifier} \ No newline at end of file diff --git a/reader/ts/src/mapper/flowTypeMapper.ts b/reader/ts/src/mapper/flowTypeMapper.ts index e93d0f5..2f4c2da 100644 --- a/reader/ts/src/mapper/flowTypeMapper.ts +++ b/reader/ts/src/mapper/flowTypeMapper.ts @@ -1,7 +1,7 @@ -import {FlowType as TucanaFlowType, FlowTypeSetting as TucanaFlowTypeSetting} from "@code0-tech/tucana/pb/shared.flow_definition_pb.ts" +import {FlowType as TucanaFlowType, FlowTypeSetting as TucanaFlowTypeSetting} from "@code0-tech/tucana/pb/shared.flow_definition_pb.js" import {FlowType, FlowTypeSetting} from "@code0-tech/sagittarius-graphql-types"; -import {getDataType} from "./dataTypeMapper.ts"; -import {ConstructedDataTypes, getID} from "../parser.ts"; +import {getDataType} from "./dataTypeMapper.js"; +import {ConstructedDataTypes, getID} from "../parser.js"; import {getTranslationConnection} from "./translation.js"; function mapFlowType(flowType: TucanaFlowType, constructed: ConstructedDataTypes): FlowType | null { diff --git a/reader/ts/src/mapper/functionMapper.ts b/reader/ts/src/mapper/functionMapper.ts index f16cdc1..fbb9b12 100644 --- a/reader/ts/src/mapper/functionMapper.ts +++ b/reader/ts/src/mapper/functionMapper.ts @@ -2,9 +2,9 @@ import {FunctionDefinition, ParameterDefinitionConnection} from "@code0-tech/sag import { RuntimeFunctionDefinition as TucanaFunction, RuntimeParameterDefinition -} from "@code0-tech/tucana/pb/shared.runtime_function_pb.ts"; -import {getDataTypeIdentifier} from "./dataTypeMapper.ts"; -import {ConstructedDataTypes, getID} from "../parser.ts"; +} from "@code0-tech/tucana/pb/shared.runtime_function_pb.js"; +import {getDataTypeIdentifier} from "./dataTypeMapper.js"; +import {ConstructedDataTypes, getID} from "../parser.js"; import {getTranslationConnection} from "./translation.js"; function mapFunction(func: TucanaFunction, constructed: ConstructedDataTypes): FunctionDefinition | null { @@ -18,6 +18,10 @@ function mapFunction(func: TucanaFunction, constructed: ConstructedDataTypes): F throwsError: func.throwsError, returnType: getDataTypeIdentifier(func.returnTypeIdentifier, constructed), parameterDefinitions: getParameterDefinitionConnection(func.runtimeParameterDefinitions, constructed), + runtimeFunctionDefinition: { + id: `gid://sagittarius/RuntimeFunctionDefinition/${getID(constructed)}`, + identifier: func.runtimeName + } } } @@ -28,9 +32,10 @@ function getParameterDefinitionConnection(def: RuntimeParameterDefinition[], con return { id: `gid://sagittarius/ParameterDefinition/${getID(constructed)}`, names: getTranslationConnection(node.name), + identifier: node.runtimeName, descriptions: getTranslationConnection(node.description), documentations: getTranslationConnection(node.documentation), - dataType: getDataTypeIdentifier(node.dataTypeIdentifier, constructed) + dataTypeIdentifier: getDataTypeIdentifier(node.dataTypeIdentifier, constructed) } }) } diff --git a/reader/ts/src/parser.ts b/reader/ts/src/parser.ts index 39e51e7..b623375 100644 --- a/reader/ts/src/parser.ts +++ b/reader/ts/src/parser.ts @@ -1,14 +1,14 @@ -import {DefinitionDataType as TucanaDataType} from "@code0-tech/tucana/pb/shared.data_type_pb.ts"; -import {Feature} from "./types.ts"; +import {DefinitionDataType as TucanaDataType} from "@code0-tech/tucana/pb/shared.data_type_pb.js"; +import {Feature} from "./types.js"; import {readdirSync, readFileSync} from "node:fs"; -import {FlowType as TucanaFlowType} from "@code0-tech/tucana/pb/shared.flow_definition_pb.ts"; -import {RuntimeFunctionDefinition as TucanaFunction} from "@code0-tech/tucana/pb/shared.runtime_function_pb.ts"; +import {FlowType as TucanaFlowType} from "@code0-tech/tucana/pb/shared.flow_definition_pb.js"; +import {RuntimeFunctionDefinition as TucanaFunction} from "@code0-tech/tucana/pb/shared.runtime_function_pb.js"; import path from "node:path"; -import {mapFlowType} from "./mapper/flowTypeMapper.ts"; -import {mapFunction} from "./mapper/functionMapper.ts"; +import {mapFlowType} from "./mapper/flowTypeMapper.js"; +import {mapFunction} from "./mapper/functionMapper.js"; import {DataType} from "@code0-tech/sagittarius-graphql-types"; -import {DefinitionDataType} from "@code0-tech/tucana/pb/shared.data_type_pb.ts"; -import {getDataType} from "./mapper/dataTypeMapper.ts"; +import {DefinitionDataType} from "@code0-tech/tucana/pb/shared.data_type_pb.js"; +import {getDataType} from "./mapper/dataTypeMapper.js"; export interface ConstructedDataTypes { scannedTucanaTypes: DefinitionDataType[] diff --git a/reader/ts/tsconfig.json b/reader/ts/tsconfig.json index 9e0ec70..4a788d9 100644 --- a/reader/ts/tsconfig.json +++ b/reader/ts/tsconfig.json @@ -21,8 +21,5 @@ "declaration": true, "emitDeclarationOnly": true, "esModuleInterop": true, - "moduleDetection": "force", - "allowSyntheticDefaultImports": true, - "allowImportingTsExtensions": true } }