SV-274768r1143806_rule
V-274768
SRG-APP-000516
SRG-APP-000516-API-001300
CAT II
10
Redesign the API to use a static type of system.
Verify the API is using a static type system.
1. Check the source code for the use of strongly typed languages such as TypeScript, Java, C#, or Go, which enforce type definitions at compile time.
2. Look for explicit type annotations in function signatures, variables, and data structures.
3. Review the project's dependencies to see if type-checking tools or frameworks (e.g., TypeScript for JavaScript, MyPy for Python) are used.
4. Check for the presence of static type checking in the build or compilation process, which ensures type correctness before runtime.
If the API is not a static type system, this is a finding.
V-274768
False
SRG-APP-000516-API-001300
Verify the API is using a static type system.
1. Check the source code for the use of strongly typed languages such as TypeScript, Java, C#, or Go, which enforce type definitions at compile time.
2. Look for explicit type annotations in function signatures, variables, and data structures.
3. Review the project's dependencies to see if type-checking tools or frameworks (e.g., TypeScript for JavaScript, MyPy for Python) are used.
4. Check for the presence of static type checking in the build or compilation process, which ensures type correctness before runtime.
If the API is not a static type system, this is a finding.
M
5703