anz-bank / sysl

Sysl (pronounced "sizzle") is a system specification language
https://sysl.io
Apache License 2.0
122 stars 42 forks source link

Validate params types in linter #1031

Open ChloePlanet opened 4 years ago

ChloePlanet commented 4 years ago

Please do not post any internal, closed source snippets on this public issue tracker!

Purpose

Output warnings when there's type which is not defined.

e.g.

MobileApp:
  Name:
    return ok <: str                # `str` not found, possible primitive Sysl type: [`string`]
  Login(input <: Servr.LoginData):  # `Servr.LoginData` not found
    return ok <: string
Server:
  !type LoginData:
    userID <: string